/* =========================================================
   My Five Senses and Food Fun! — Author Site
   ========================================================= */

:root {
  --red: #e23d2f;
  --red-dark: #c23024;
  --green: #2f9e55;
  --green-dark: #217a3f;
  --yellow: #f5c400;
  --blue: #2f8fd6;
  --sky: #8fd3f0;
  --purple: #8b5cf6;
  --orange: #f0882a;
  --ink: #1c2b26;
  --muted: #4d635a;
  --paper: #fffdf8;
  --soft: #f3faf6;
  --soft-peach: #fff4ec;
  --line: rgba(28, 43, 38, 0.08);
  --wood-1: #d9b48a;
  --wood-2: #c49a6c;
  --wood-3: #b08455;
  --shadow: 0 18px 50px rgba(28, 43, 38, 0.14);
  --shadow-lg: 0 30px 80px rgba(28, 43, 38, 0.2);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 76px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
  transition: width 80ms linear;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(28, 43, 38, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo-icon {
  display: grid;
  place-items: center;
  animation: bob 3.5s ease-in-out infinite;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.28rem;
  max-width: 170px;
}

.logo-sub {
  width: 100%;
  display: flex;
  gap: 0.28rem;
  font-size: 0.88em;
}

.logo-text .c1 { color: var(--red); }
.logo-text .c2 { color: var(--orange); }
.logo-text .c3 { color: var(--green); }
.logo-text .c4 { color: var(--blue); }
.logo-text .c5 { color: var(--yellow); filter: brightness(0.85); }
.logo-text .c6 { color: var(--red); }
.logo-text.light { color: #fff; max-width: none; font-size: 1.05rem; }

.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  margin-right: 1rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  margin: 6px 0;
  background: var(--ink);
  border-radius: 99px;
  transition: 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(226, 61, 47, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 16px 34px rgba(226, 61, 47, 0.42);
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 158, 85, 0.3);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 143, 214, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(28, 43, 38, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(28, 43, 38, 0.15);
}

.btn-sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
}

.btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(47, 158, 85, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 1.5rem) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.hero-bg-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.35) 0%, rgba(255, 253, 248, 0.15) 35%, rgba(28, 43, 38, 0.15) 70%, rgba(92, 64, 38, 0.45) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.35), transparent 50%);
}

.hero-table {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(176, 132, 85, 0.15) 12%, transparent 12%),
    repeating-linear-gradient(
      90deg,
      var(--wood-1) 0 48px,
      var(--wood-2) 48px 96px,
      var(--wood-3) 96px 110px,
      var(--wood-2) 110px 150px
    );
  box-shadow: inset 0 18px 40px rgba(80, 45, 15, 0.18);
  border-top: 3px solid rgba(255, 230, 190, 0.35);
  transform: perspective(800px) rotateX(8deg);
  transform-origin: bottom;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 7.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  color: #16352c;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.accent-red { color: var(--red); }
.accent-green { color: var(--green-dark); }

.hero-lead {
  font-size: 1.08rem;
  color: #243f36;
  max-width: 34rem;
  font-weight: 600;
  background: rgba(255, 253, 248, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.85rem 1rem;
  border-radius: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.hero-product {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.ages-badge {
  position: absolute;
  top: 8%;
  right: 4%;
  z-index: 5;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 4px solid #fff;
}

.book-3d {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  perspective: 1000px;
  filter: drop-shadow(0 28px 40px rgba(28, 43, 38, 0.35));
  animation: bookFloat 5s ease-in-out infinite;
}

.book-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateY(-18deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.book-3d:hover .book-3d-inner {
  transform: rotateY(-8deg) rotateX(2deg) translateY(-8px);
}

.book-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  position: relative;
  z-index: 2;
}

.book-spine {
  position: absolute;
  left: -16px;
  top: 2%;
  bottom: 2%;
  width: 18px;
  background: linear-gradient(90deg, #1e6fa8, #3a9fd4 45%, #1e6fa8);
  transform: rotateY(-90deg) translateZ(0);
  transform-origin: right center;
  border-radius: 3px 0 0 3px;
  box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.25);
}

.hero-produce .produce {
  position: absolute;
  font-size: 2.4rem;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.2));
  z-index: 4;
}

.p-berry { left: 8%; bottom: 18%; }
.p-berry2 { left: 18%; bottom: 8%; font-size: 1.8rem; }
.p-straw { left: 28%; bottom: 14%; }
.p-melon { right: -2%; bottom: 10%; font-size: 3.2rem; }
.p-broc { right: 8%; bottom: 22%; font-size: 2.6rem; }

.hero-fruit-bowl {
  position: absolute;
  left: 8%;
  bottom: 4.5rem;
  z-index: 3;
  display: flex;
  gap: 0.25rem;
  font-size: 1.8rem;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
}

/* Media */
.media-section {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
  padding-bottom: 4rem;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.media-card {
  background: linear-gradient(180deg, #fff 0%, var(--soft-peach) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.media-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.media-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.media-icon.video { color: var(--red); }
.media-icon.audio { color: var(--green); }

.video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #16352c;
  margin-bottom: 0.85rem;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transform: scale(1.02);
}

.play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(226, 61, 47, 0.4);
  transition: transform 0.3s var(--ease), background 0.25s;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--red-dark);
}

.video-overlay-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.audio-player {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
}

.audio-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.audio-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.audio-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
}

.audio-meta > span {
  color: var(--muted);
  font-size: 0.88rem;
}

.audio-progress {
  height: 7px;
  background: rgba(47, 158, 85, 0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.audio-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #7ed957);
  border-radius: inherit;
  transition: width 0.2s linear;
}

.audio-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.audio-controls {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.audio-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.audio-btn:hover {
  transform: scale(1.08);
}

.audio-play {
  background: var(--green);
  color: #fff;
}

.media-card > p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Together */
.together-section {
  padding: 5rem 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 196, 0, 0.12), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(47, 158, 85, 0.1), transparent 40%),
    var(--paper);
}

.together-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.together-visual {
  position: relative;
}

.together-visual > img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.photo-stack {
  position: absolute;
  right: -8%;
  bottom: -10%;
  width: min(42%, 220px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
  transform: rotate(4deg);
  animation: bob 4.5s ease-in-out infinite;
}

.together-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.together-copy p {
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 600;
}

/* Senses */
.senses-section {
  position: relative;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(180deg, #eef9f2 0%, #fffdf8 55%, #fff4ec 100%);
  overflow: hidden;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  position: relative;
  display: inline-block;
}

.section-heading h2::before,
.section-heading h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 -6px 0 var(--yellow), 0 6px 0 var(--yellow);
}

.section-heading h2::before { right: calc(100% + 14px); }
.section-heading h2::after { left: calc(100% + 14px); }

.section-heading p {
  color: var(--muted);
  font-weight: 700;
  font-size: 1.1rem;
}

.senses-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.sense-card {
  text-align: center;
  padding: 1.2rem 0.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  cursor: default;
}

.sense-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow);
}

.sense-orb {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.08), 0 10px 22px rgba(0, 0, 0, 0.08);
  animation: pulseSoft 3.2s ease-in-out infinite;
}

.sense-card[data-sense="sight"] .sense-orb { background: #d9efff; }
.sense-card[data-sense="smell"] .sense-orb { background: #d9f5e2; animation-delay: 0.2s; }
.sense-card[data-sense="taste"] .sense-orb { background: #ffd9d5; animation-delay: 0.4s; }
.sense-card[data-sense="touch"] .sense-orb { background: #ffe4c7; animation-delay: 0.6s; }
.sense-card[data-sense="hearing"] .sense-orb { background: #eadfff; animation-delay: 0.8s; }

.sense-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.sense-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.poem {
  margin: 2.8rem auto 0;
  max-width: 640px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: #234337;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.senses-decor {
  position: absolute;
  top: 40%;
  font-size: 2rem;
  opacity: 0.7;
  animation: bob 5s ease-in-out infinite;
  pointer-events: none;
}

.senses-decor.left { left: 2%; }
.senses-decor.right { right: 2%; animation-delay: 1s; }

/* Product */
.product-section {
  padding: 5.5rem 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(47, 143, 214, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(226, 61, 47, 0.08), transparent 35%),
    var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.flip-hint {
  margin-bottom: 1rem;
  border: 0;
  background: rgba(28, 43, 38, 0.06);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.flip-hint:hover {
  background: rgba(28, 43, 38, 0.1);
  color: var(--ink);
}

.flip-hint[aria-pressed="true"] .flip-label-front { display: none; }
.flip-hint:not([aria-pressed="true"]) .flip-label-back { display: none; }

.flip-book {
  width: min(320px, 78vw);
  aspect-ratio: 3 / 4;
  perspective: 1600px;
  cursor: pointer;
}

.flip-book-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.flip-book.is-flipped .flip-book-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-back {
  transform: rotateY(180deg);
}

.product-shine {
  position: absolute;
  inset: 12% 18%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%);
  mix-blend-mode: soft-light;
  animation: shine 4.5s ease-in-out infinite;
  border-radius: 12px;
}

.product-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0.25rem;
}

.byline {
  font-weight: 800;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.product-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.product-points li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 650;
  color: var(--muted);
}

.product-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.product-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-formats span {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-dark);
}

/* Author */
.author-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--soft) 0%, var(--paper) 100%);
}

.author-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.author-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  grid-template-rows: 1fr 0.85fr;
  gap: 0.9rem;
  min-height: 480px;
}

.author-gallery figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.author-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.author-gallery figure:hover img {
  transform: scale(1.05);
}

.author-main {
  grid-row: 1 / 3;
}

.author-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.author-copy p {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Newsletter / Contact */
.newsletter-section {
  padding: 2rem 0 5rem;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.25rem;
}

.newsletter-card,
.contact-card {
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #eef9f2 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-card h2,
.contact-card h2 {
  font-size: 1.9rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.newsletter-form input {
  flex: 1 1 200px;
  border: 2px solid rgba(28, 43, 38, 0.1);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.newsletter-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 158, 85, 0.15);
}

.pear-mascot {
  width: min(150px, 28vw);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.15));
}

.form-note {
  margin-top: 0.75rem;
  color: var(--green-dark);
  font-weight: 800;
}

.contact-card {
  background: linear-gradient(160deg, #17352c, #245544);
  color: #fff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.contact-list a {
  color: #fff;
  font-weight: 800;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

/* Ticker */
.ticker {
  background: var(--yellow);
  overflow: hidden;
  padding: 0.75rem 0;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #143028;
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 260px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 650;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.socials {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* Reveal + motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.float-soft { animation: bob 4s ease-in-out infinite; }
.float-a { animation: floatY 4.5s ease-in-out infinite; }
.float-b { animation: floatY 5.2s ease-in-out infinite reverse; }
.float-c { animation: floatY 3.8s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

@keyframes bookFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes shine {
  0%, 100% { opacity: 0; transform: translateX(-30%); }
  40%, 60% { opacity: 1; }
  100% { opacity: 0; transform: translateX(30%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 1rem auto;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 1rem;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.3s var(--ease);
    margin: 0;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .hero-inner,
  .together-grid,
  .product-grid,
  .author-grid,
  .newsletter-grid,
  .media-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-inner {
    padding-bottom: 6rem;
    gap: 1.5rem;
  }

  .hero-product {
    min-height: 340px;
    order: -1;
  }

  .hero-table { height: 32%; }

  .senses-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-stack {
    right: 4%;
    bottom: -6%;
  }

  .author-gallery {
    min-height: 420px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pear-mascot {
    margin: 0 auto;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .senses-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .sense-card:last-child {
    grid-column: 1 / -1;
    width: min(220px, 100%);
    margin-inline: auto;
  }

  .audio-player {
    grid-template-columns: 72px 1fr;
  }

  .audio-thumb {
    width: 72px;
    height: 72px;
  }

  .author-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .author-main {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .author-side,
  .author-kids {
    aspect-ratio: 3 / 4;
  }

  .hero-fruit-bowl {
    display: none;
  }

  .senses-decor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-soft,
  .float-a,
  .float-b,
  .float-c,
  .book-3d,
  .sense-orb,
  .product-shine,
  .ticker-track,
  .logo-icon,
  .photo-stack {
    animation: none !important;
  }
}
