/* ============================================================
   Benita Wright — Coloring Books
   Elegant + playful brand site
   Palette: deep navy ink · mint/teal · coral · gold · warm cream
   ============================================================ */

/* ---------- Fonts: loaded via <link> in <head> (no render-blocking @import) ---------- */

/* ---------- Tokens ---------- */
:root {
  --cream:        #FBF6EC;
  --cream-2:      #F4ECDD;
  --surface:      #FFFFFF;
  --ink:          #16304E;   /* deep navy headings */
  --ink-soft:     #1E3A5F;
  --body:         #41556B;   /* readable navy-gray on cream */
  --muted:        #6B7C8F;

  --mint:         #8AD7C1;
  --mint-deep:    #2FAE94;
  --coral:        #FF6F61;
  --coral-deep:   #ED5747;
  --gold:         #E0A93B;
  --sky:          #5BC6E8;

  --ring:         rgba(47, 174, 148, .45);
  --shadow-sm:    0 2px 8px rgba(22, 48, 78, .06);
  --shadow-md:    0 12px 30px rgba(22, 48, 78, .10);
  --shadow-lg:    0 28px 60px rgba(22, 48, 78, .16);
  --shadow-coral: 0 14px 30px rgba(255, 111, 97, .35);

  --radius:       18px;
  --radius-lg:    28px;
  --maxw:         1180px;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --font-accent:  'Fraunces', Georgia, serif;

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

::selection { background: var(--mint); color: var(--ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mint-deep);
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--mint-deep);
  border-radius: 2px;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.h-xl { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.h-lg { font-size: clamp(2rem, 5vw, 3rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2rem); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--body);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
  min-height: 48px;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.btn-primary { background: var(--coral); color: var(--ink); box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-deep); color: #fff; transform: translateY(-3px); }

.btn-ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.btn-ink:hover { background: var(--ink-soft); transform: translateY(-3px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(22,48,78,.18); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

.btn-sm { padding: .68rem 1.25rem; font-size: .95rem; min-height: 44px; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: .85rem clamp(1.15rem, 4vw, 2.5rem);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              padding .35s var(--ease);
}
.header.scrolled {
  background: rgba(251, 246, 236, .85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(22,48,78,.06), var(--shadow-sm);
  padding-block: .6rem;
}
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 40px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: .25rem 0;
  font-size: 1rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid rgba(22,48,78,.1);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(22,48,78,.35);
  backdrop-filter: blur(4px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(82vw, 340px);
  background: var(--cream);
  padding: 5.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  padding: .85rem .25rem;
  border-bottom: 1px solid rgba(22,48,78,.08);
}
.mobile-panel .btn { margin-top: 1.25rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(7rem, 16vw, 9rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(138,215,193,.28), transparent 70%),
    radial-gradient(50% 45% at 0% 30%, rgba(255,111,97,.16), transparent 70%),
    var(--cream);
  z-index: -2;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .5;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero-copy .tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid rgba(47,174,148,.25);
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}
.hero h1 { font-size: clamp(2.55rem, 9vw, 4.6rem); font-weight: 600; }
.hero h1 .hl { color: var(--coral); position: relative; white-space: nowrap; }
.hero h1 .hl svg {
  position: absolute; left: 0; bottom: -.18em; width: 100%; height: .35em;
}
.hero .lead { margin-top: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-meta {
  margin-top: 2.2rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: .95rem; color: var(--muted);
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }

/* Hero visual — stacked floating covers */
.hero-visual { position: relative; min-height: 360px; }
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}
.float-card {
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
}
.float-card img { display: block; }
.hero-c1 {
  width: clamp(170px, 48%, 260px);
  transform: rotate(-6deg);
  position: relative; z-index: 3;
  animation: float-a 7s ease-in-out infinite;
}
.hero-c2 {
  position: absolute;
  width: clamp(120px, 34%, 180px);
  top: 4%; right: 2%;
  transform: rotate(7deg);
  z-index: 2;
  animation: float-b 8s ease-in-out infinite;
}
.hero-c3 {
  position: absolute;
  width: clamp(120px, 34%, 180px);
  bottom: 0; left: 2%;
  transform: rotate(-9deg);
  z-index: 2;
  animation: float-c 9s ease-in-out infinite;
}
.hero-badge {
  position: absolute;
  right: 6%; bottom: 14%;
  background: var(--surface);
  border-radius: 16px;
  padding: .8rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .65rem;
  z-index: 4;
  animation: float-b 6s ease-in-out infinite;
}
.hero-badge .pin {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--mint); color: var(--ink);
  display: grid; place-items: center;
}
.hero-badge .pin svg { width: 20px; height: 20px; }
.hero-badge b { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; line-height: 1.1; }
.hero-badge span { font-size: .8rem; color: var(--muted); }

@keyframes float-a { 0%,100%{transform:rotate(-6deg) translateY(0)} 50%{transform:rotate(-6deg) translateY(-14px)} }
@keyframes float-b { 0%,100%{transform:rotate(7deg) translateY(0)} 50%{transform:rotate(7deg) translateY(-18px)} }
@keyframes float-c { 0%,100%{transform:rotate(-9deg) translateY(0)} 50%{transform:rotate(-9deg) translateY(-12px)} }

/* ---------- Marquee tagline strip ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: .9rem;
  margin-block: 1rem;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee .dot { color: var(--coral); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ============================================================
   INTRO VIDEO BAND
   ============================================================ */
.video-band { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--cream); }
.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-2);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 710;
}

/* ============================================================
   VALUE PROPS
   ============================================================ */
.values-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.value-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,48,78,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--ink);
}
.value-ic svg { width: 28px; height: 28px; }
.value-ic.mint { background: rgba(138,215,193,.4); }
.value-ic.coral { background: rgba(255,111,97,.22); }
.value-ic.gold { background: rgba(224,169,59,.22); }
.value-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.value-card p { font-size: 1rem; color: var(--body); }

/* ============================================================
   PRODUCT COLLECTIONS
   ============================================================ */
.collection { background: var(--surface); }
.collection.alt { background: var(--cream); }

.coll-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.price-tag {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mint-deep);
  background: rgba(138,215,193,.25);
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  white-space: nowrap;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}
.book-grid.three { grid-template-columns: 1fr; }

.book {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,48,78,.05);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.collection.alt .book { background: var(--surface); }
.book:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* ---------- 3-D book cover ---------- */
.book-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  perspective: 1100px;
}
.book-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform .6s var(--ease);
}
.book-3d img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px;
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
}
/* page block revealed when the cover tilts open */
.book-3d::before {
  content: "";
  position: absolute; top: 1.5%; bottom: 1.5%; left: 2%; right: 2%;
  background: linear-gradient(90deg, #d8d1c1 0%, #fdfbf4 10%, #efe9da 55%, #e2dbc9 100%);
  border-radius: 10px 5px 5px 10px;
  transform: translateZ(-24px);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) and (pointer: fine) {
  .book:hover .book-3d { transform: rotateY(-24deg); }
}
.book-vol {
  position: absolute; top: .65rem; left: .65rem;
  z-index: 2;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 500;
  font-size: .72rem; letter-spacing: .04em;
  padding: .3rem .65rem; border-radius: 999px;
}
.book h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.book p { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.book-price { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }

/* ============================================================
   GALLERY (inside the books)
   ============================================================ */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 2.5vw, 1.25rem);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  background: var(--surface);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-stamp {
  position: absolute;
  bottom: -1.25rem; left: -1rem;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  line-height: 1.15;
}
.about-stamp span { display: block; font-size: .8rem; font-weight: 500; opacity: .85; }
.about-body p + p { margin-top: 1.1rem; }
.about-sign {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
  margin-top: 1.5rem;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote { background: var(--ink); color: var(--cream); }
.quote .container { text-align: center; max-width: 820px; }
.quote .mark {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 5rem;
  line-height: .5;
  color: var(--mint);
  display: block;
  margin-bottom: .5rem;
}
.quote blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  line-height: 1.4;
  color: #fff;
}
.quote .stars { justify-content: center; margin-top: 1.5rem; }
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-display);
  color: var(--mint);
}

/* ============================================================
   FREE PAGES (email opt-in)
   ============================================================ */
.optin { background: var(--cream); }
.optin-card {
  position: relative;
  background: linear-gradient(135deg, var(--mint) 0%, #b6e7da 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 4rem);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.optin-card::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.optin-card .inner { position: relative; z-index: 1; max-width: 560px; }
.optin-card h2 { color: var(--ink); }
.optin-card p { color: var(--ink-soft); margin-top: .85rem; font-weight: 600; }
.optin-form {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.75rem;
}
.optin-form .field { position: relative; flex: 1 1 240px; }
.optin-form label.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.optin-form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .95rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #fff;
  color: var(--ink);
  min-height: 52px;
}
.optin-form input::placeholder { color: var(--muted); }
.optin-form input:focus-visible { outline: none; border-color: var(--ink); }
.optin-note { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); opacity: .8; }
.optin-error {
  display: none;
  margin-top: .9rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: #8c1d12;
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  padding: .7rem 1rem;
}
.optin-error.show { display: block; animation: pop .35s var(--ease); }

/* Honeypot — visually hidden, off-screen, untabbable */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Submit button loading state */
.optin-form button[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn-spinner { display: none; }
.optin-form button[aria-busy="true"] .btn-label { opacity: .65; }
.optin-form button[aria-busy="true"] .btn-spinner {
  display: inline-block;
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .optin-form button[aria-busy="true"] .btn-spinner { animation: none; }
}
.optin-success {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
}
.optin-success.show { display: flex; animation: pop .4s var(--ease); }
.optin-success .check {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mint-deep); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
@keyframes pop { from { transform: scale(.9); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(251,246,236,.75); padding-block: clamp(3rem, 7vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.footer .brand img { height: 38px; filter: brightness(0) invert(1); }
.footer-about { max-width: 34ch; margin-top: 1rem; font-size: .95rem; }
.footer h4 {
  color: #fff; font-family: var(--font-display); font-size: 1.05rem;
  margin-bottom: 1rem; font-weight: 500;
}
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { transition: color .2s var(--ease); width: fit-content; }
.footer-links a:hover { color: var(--mint); }
.footer-contact a { color: var(--mint); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(251,246,236,.12);
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: space-between;
  font-size: .85rem;
}
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { background: var(--mint); color: var(--ink); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--mint-deep));
  z-index: 60;
  transition: width .1s linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid.three { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-visual { min-height: 520px; }

  .book-grid { grid-template-columns: repeat(4, 1fr); }

  .about-grid { grid-template-columns: .85fr 1.15fr; }
  .about-grid.flip { grid-template-columns: 1.15fr .85fr; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-c1, .hero-c2, .hero-c3, .hero-badge, .marquee-track { animation: none; }
}
