/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Background palette */
  --bg-deep:    #0b1e2d;   /* hero, publications */
  --bg-dark:    #0c2535;   /* research, footer */
  --bg-teal:    #0c3040;   /* courses */
  --bg-light:   #ffffff;   /* pure white */
  --bg-warm:    #f0ede6;   /* warm off-white / cream */

  /* Accent */
  --teal:       #5bc8d4;
  --teal-light: #8ed8e2;
  --orange:     #e05828;   /* email icon */
  --red:        #c93322;   /* location icon */

  /* Text on dark */
  --text-hi:    #ffffff;
  --text-mid:   rgba(255, 255, 255, 0.65);
  --text-lo:    rgba(255, 255, 255, 0.38);

  /* Text on light */
  --text-dark:      #10202e;
  --text-dark-mid:  #4a5f72;

  /* Borders */
  --border-lo:  rgba(255, 255, 255, 0.09);
  --border-mid: rgba(255, 255, 255, 0.17);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w:   1200px;
  --pad-x:   clamp(20px, 4vw, 48px);
  --sec-gap: clamp(72px, 9vw, 112px);

  /* Transitions */
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text-hi);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
img   { max-width: 100%; display: block; }


/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--sec-gap) 0;
}


/* ============================================================
   TYPOGRAPHY ATOMS
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: 10px;
}

.eyebrow-teal { color: var(--teal); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.75vw, 58px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--text-hi);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-header--inline {
  align-items: center;
}

.section-header-left { flex-shrink: 0; }

.section-desc {
  font-size: 14.5px;
  color: var(--text-mid);
  max-width: 320px;
  line-height: 1.75;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-teal {
  background: var(--teal);
  color: var(--bg-deep);
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(91, 200, 212, 0.25);
}

.btn-ghost {
  border-color: var(--border-mid);
  color: var(--text-hi);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-mid);
  color: var(--text-hi);
  border-radius: 8px;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-ghost-sm:hover {
  border-color: var(--teal);
  color: var(--teal);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: rgba(11, 30, 45, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-scrolled {
  background: rgba(11, 30, 45, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-lo);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand { display: flex; flex-direction: column; gap: 2px; }

.nav-logo {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: color var(--ease);
}
.nav-logo:hover { color: var(--teal); }

.nav-subtitle {
  font-size: 10.5px;
  color: var(--text-lo);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--text-hi); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-hi);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/IMG_4830.JPG');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 38, 0.88);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 4;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--pad-x) 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}

/* Small extra spacing between fixed header and hero on homepage */
.home .hero-container {
  padding-top: 83px; /* tightened by ~50% of previous extra */
}

.hero-text { max-width: 580px; }

/* Right column — photo stacked above contact card */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 268px;
}

.hero-photo-img {
  height: clamp(210px, 28.5vh, 345px);
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 3px;
  display: block;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(34px, 4.75vw, 58px);
  font-weight: 700;
  line-height: 0.93;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  margin: 8px 0 28px;
}

.name-accent {
  color: #4ab8d8;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.72;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats bar — POSITION / FOCUS / REGION */
.hero-stats {
  display: flex;
  margin-top: 36px;
  border-top: 1px solid var(--border-mid);
  max-width: 480px;
}

.hero-stat {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
/* Vertical dividers that start below the top line */
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-mid);
}

.hero-stat-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-stat-value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.2;
}

/* Contact card */
.contact-card {
  background: rgba(12, 44, 62, 0.72);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 268px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.5;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
}

.icon-email   { color: var(--orange); }
.icon-location { color: var(--red); }

.contact-link {
  color: var(--teal-light);
  transition: color var(--ease);
}
.contact-link:hover { color: var(--text-hi); }

.contact-value { flex: 1; }


/* ============================================================
   RESEARCH
   ============================================================ */
.research-section {
  background: var(--bg-dark);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.research-card {
  position: relative;
  height: 490px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
}
.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

/* Card background images — replace with real photos */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.research-card:hover .card-bg { transform: scale(1.05); }

/* Gradient stand-ins (replace with real images):
   .card-bg--polynesia { background-image: url('../images/research-polynesia.jpg'); }
   .card-bg--solomon   { background-image: url('../images/research-solomon.jpg'); }
   .card-bg--sandiego  { background-image: url('../images/research-sandiego.jpg'); }
*/
.card-bg--polynesia {
  background-image: url('../images/Opu.JPG');
  background-size: cover;
  background-position: center;
}
.card-bg--solomon {
  background-image: url('../images/IMG_2301.JPG');
  background-size: cover;
  background-position: center;
}
.card-bg--sandiego {
  background-image: url('../images/original_5_bottom_scratchers.jpg');
  background-size: cover;
  background-position: center;
}

/* Dark gradient overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 18, 28, 0.08)  0%,
    rgba(6, 18, 28, 0.05)  30%,
    rgba(6, 18, 28, 0.78)  68%,
    rgba(6, 18, 28, 0.96) 100%
  );
  z-index: 1;
}

.card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 26px 28px;
  z-index: 2;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 12px;
}

.badge-nsf {
  background: rgba(91, 200, 212, 0.15);
  border: 1px solid rgba(91, 200, 212, 0.38);
  color: var(--teal);
}

.badge-ongoing {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-mid);
}

.card-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  color: var(--text-hi);
  line-height: 1.15;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 11px;
}

.card-excerpt {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal);
  transition: color var(--ease);
}
.research-card:hover .card-link { color: var(--teal-light); }



/* ============================================================
   BOOK
   ============================================================ */
.book-section {
  background: var(--bg-warm);
}

.book-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.book-cover-wrap { flex-shrink: 0; }

.book-cover-link { display: block; }
.book-cover-link .book-cover-img {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.book-cover-link:hover .book-cover-img {
  opacity: 0.88;
  transform: translateY(-3px);
}

.book-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--teal);
  text-decoration: none;
  transition: color var(--ease), gap var(--ease);
}
.book-learn-more:hover {
  color: var(--teal-light);
  gap: 10px;
}

.book-cover-img {
  width: clamp(180px, 22vw, 265px);
  border-radius: 3px;
}

/* Book details (light background) */
.book-details .eyebrow { color: var(--teal); margin-bottom: 14px; text-align: left; }

.book-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.75vw, 58px);
  font-weight: 700;
  line-height: 0.93;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-align: left;
}

.book-subtitle {
  font-size: 16px;
  font-style: italic;
  color: var(--text-dark-mid);
  margin-bottom: 28px;
  text-align: left;
}

.book-quote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 20px;
  margin-bottom: 36px;
}
.book-quote p {
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-dark-mid);
  line-height: 1.72;
}
.book-quote-cite {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-dark-mid);
}

.purchase-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark-mid);
  margin-bottom: 12px;
}

.purchase-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-buy {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.02em;
  transition: all var(--ease);
  border: none;
  cursor: pointer;
}

.btn-amazon {
  background: #f0a500;
  color: #1a1208;
}
.btn-amazon:hover { background: #d99300; transform: translateY(-1px); }

.btn-bn {
  background: #1a2535;
  color: #ffffff;
}
.btn-bn:hover { background: #253448; transform: translateY(-1px); }

.btn-uc {
  background: var(--bg-dark);
  color: #ffffff;
}
.btn-uc:hover { background: var(--bg-teal); transform: translateY(-1px); }


/* ============================================================
   COURSES
   ============================================================ */
.courses-section {
  background: var(--bg-teal);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.course-card {
  display: block;
  padding: 26px 30px;
  border: 1px solid var(--border-lo);
  margin: -1px 0 0 -1px; /* collapsed borders */
  transition: background var(--ease), border-color var(--ease);
}

/* Round the four outer corners of the grid */
.course-card:first-child        { border-top-left-radius: 8px; }
.course-card:nth-child(2)       { border-top-right-radius: 8px; }
.course-card:nth-last-child(2)  { border-bottom-left-radius: 8px; }
.course-card:last-child         { border-bottom-right-radius: 8px; }
.course-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-mid);
  z-index: 1;
  position: relative;
}

.course-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.course-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--text-hi);
  line-height: 1.3;
}


/* ============================================================
   PUBLICATIONS
   ============================================================ */
.publications-section {
  background: var(--bg-deep);
}

.pub-list { display: flex; flex-direction: column; }

.pub-group {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-lo);
}
.pub-group:first-of-type { border-top: 1px solid var(--border-lo); }

.pub-year-col { padding-top: 3px; }

.pub-year {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-lo);
  line-height: 1.2;
}

.pub-year-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.pub-entries { display: flex; flex-direction: column; gap: 18px; }

.pub-text {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.72;
}
.pub-text em {
  font-style: italic;
  color: var(--text-hi);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
}

.footer-rule {
  height: 1px;
  background: var(--border-lo);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  padding: 56px 0 44px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 10px;
}

.footer-bio {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.68;
  max-width: 360px;
  margin-bottom: 22px;
}

.footer-contacts { display: flex; flex-direction: column; gap: 10px; }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-link { color: var(--teal-light); transition: color var(--ease); }
.footer-link:hover { color: var(--text-hi); }

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

.footer-links-heading {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: 18px;
}

.footer-links-list { display: flex; flex-direction: column; gap: 11px; }

.footer-ext-link {
  font-size: 13.5px;
  color: var(--teal);
  transition: color var(--ease);
}
.footer-ext-link:hover { color: var(--text-hi); }

.footer-bar {
  border-top: 1px solid var(--border-lo);
  padding: 18px 0;
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-field {
  font-size: 11.5px;
  color: var(--text-lo);
}


/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }


/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .research-grid .research-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }

  .book-layout { gap: 44px; }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-container { height: 64px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(11, 30, 45, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--border-lo);
  }
  .nav-links.is-open { display: flex; }
  .nav-link {
    display: block;
    padding: 13px var(--pad-x);
    font-size: 12px;
  }
  .nav-link::after { display: none; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 32px;
  }
  .hero-right {
    order: -1;
    align-items: center;
    width: 100%;
  }
  /* Prevent fixed max-widths from forcing horizontal scroll on small screens */
  .hero-text { max-width: 100%; }
  .hero-desc { max-width: 100%; margin-bottom: 20px; }
  .hero-stats { max-width: 100%; }
  .hero-photo-img {
    display: block;
    width: 136px;
    height: 136px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 3px solid rgba(91, 200, 212, 0.4);
    margin: 0 auto;
  }
  .contact-card { min-width: unset; width: 100%; }

  /* Slight extra top padding on mobile for homepage (halved) */
  .home .hero-container { padding-top: 103px; }

  /* Research */
  .research-grid { grid-template-columns: 1fr; }
  .research-grid .research-card:last-child {
    grid-column: 1;
    max-width: 100%;
  }
  .research-card { height: 380px; }

  /* Section header stack */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Book */
  .book-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .book-cover-wrap { text-align: center; }
  .book-cover-img { margin: 0 auto; }
  .book-quote { text-align: left; }
  .purchase-btns { justify-content: center; }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; }
  .course-card:nth-child(2)      { border-top-right-radius: 0; }
  .course-card:nth-last-child(2) { border-bottom-left-radius: 0; }
  .course-card:first-child       { border-top-right-radius: 8px; }
  .course-card:last-child        { border-bottom-left-radius: 8px; }

  /* Publications */
  .pub-group {
    grid-template-columns: 56px 1fr;
    gap: 24px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }
  .footer-bar-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Match the Research section title sizing for visual parity */
  .hero-name { font-size: clamp(34px, 4.75vw, 58px); }
  .hero-actions { flex-direction: column; }
  .btn, .btn-ghost { width: 100%; justify-content: center; }
  .purchase-btns { flex-direction: column; }
  .btn-buy { justify-content: center; }
  .research-card { height: 340px; }
  .research-card:has(.card-bg--polynesia) .card-title { color: var(--text-dark); font-weight: 700; }
  .is-chrome .research-card:has(.card-bg--polynesia) .card-title { color: var(--text-hi); font-weight: 500; }

  /* Reduce horizontal padding and stack stats to avoid overflow on very small phones */
  .hero-container {
    padding-top: 60px;
    padding-bottom: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-stats { flex-direction: column; gap: 6px; max-width: 100%; }
  .hero-stats .hero-stat::after { display: none; }
  .hero-text { overflow-wrap: break-word; }
}
