/* staging1: component polish for #main-section through #fifth-section (extracted from homepage, simplified) */

/* ── Hero atmosphere ──
   Exact production index.html / layout.css: CSS grid lines + gradient base (no webp). */
body.staging1-page #main-section.hero-section {
  background-image: linear-gradient(rgba(78, 94, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 94, 109, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f0f4f8 0, #e8ecf0 40%, #dde4eb 100%);
  background-size: 60px 60px, 60px 60px, auto;
}

/* Keep grid visible behind hero content (layout.css sets z-index on inner wrapper) */
body.staging1-page #main-section > .site-content-width,
body.staging1-page #main-section > .max-w-container-max {
  background: transparent;
}

body.staging1-page .hero-headline {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  hyphens: auto;
}

body.staging1-page .font-serif-display {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.staging1-page .material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  width: 1em;
  height: 1em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Hero image panel ── */
body.staging1-page .hero-image-panel-3d {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: clamp(180px, 42vw, 463px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: -20px 32px 60px rgba(78, 94, 109, 0.28), -5px 10px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: perspective(1400px) rotateY(-12deg) rotateX(6deg) rotateZ(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: -16px;
  width: calc(100% + 16px);
}

body.staging1-page .hero-image-panel-3d:hover {
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg) rotateZ(-1deg) scale(1.02);
}

@media (max-width: 1023px) {
  body.staging1-page .hero-image-panel-3d {
    transform: perspective(1200px) rotateY(-5deg) rotateX(3deg) rotateZ(-1deg) scale(0.95);
    margin-right: 0;
    width: 100%;
  }
}

@media (min-width: 1440px) {
  body.staging1-page .hero-image-panel-3d {
    transform: perspective(1400px) rotateY(-14deg) rotateX(7deg) rotateZ(-2deg) scale(1.02);
  }
}

/* ── Badges ── */
body.staging1-page .badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(78, 94, 109, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(78, 94, 109, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  body.staging1-page .badge {
    border-radius: 12px;
    padding: 16px 20px;
    gap: 12px;
  }
}

body.staging1-page .badge:hover {
  transform: translateY(-2px);
}

/* ── Stats row ── */
body.staging1-page .stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(78, 94, 109, 0.15);
}

@keyframes marqueeStats {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  body.staging1-page .animate-marquee-stats {
    display: flex;
    width: max-content;
    animation: marqueeStats 16s linear infinite;
  }

  body.staging1-page .animate-marquee-stats:hover {
    animation-play-state: paused;
  }
}

/* ── Scroll indicator ── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

body.staging1-page .scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Fade-up entrance ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.staging1-page .hero-fade-wrap {
  contain: layout style;
}

body.staging1-page .animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: var(--fade-delay, 0s);
  opacity: 0;
}

body.staging1-page .fade-delay-100 { --fade-delay: 0.1s; }
body.staging1-page .fade-delay-200 { --fade-delay: 0.2s; }
body.staging1-page .fade-delay-250 { --fade-delay: 0.25s; }
body.staging1-page .fade-delay-300 { --fade-delay: 0.3s; }
body.staging1-page .fade-delay-400 { --fade-delay: 0.4s; }
body.staging1-page .fade-delay-500 { --fade-delay: 0.5s; }

/* ── DNR seal ── */
body.staging1-page .home-dnr-seal {
  position: absolute;
  top: -8px;
  right: clamp(0px, 2vw, 24px);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 11vw, 112px);
  height: clamp(80px, 11vw, 112px);
  text-decoration: none;
  color: #f8fafc;
  transform: rotate(-8deg);
  transform-origin: 100% 0%;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.55));
}

@media (max-width: 767px) and (orientation: portrait) {
  body.staging1-page .home-dnr-seal {
    display: none;
  }
}

body.staging1-page .home-dnr-seal__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(148, 163, 184, 0.72);
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #0b1220 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 2px rgba(15, 23, 42, 0.92);
}

body.staging1-page .home-dnr-seal__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  letter-spacing: 0.06em;
}

body.staging1-page .home-dnr-seal__prefix {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 3px;
  letter-spacing: 0.22em;
}

body.staging1-page .home-dnr-seal__dnr {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}

body.staging1-page .home-dnr-seal__year {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  letter-spacing: 0.24em;
  color: #e2e8f0;
}

body.staging1-page .home-dnr-seal__tagline {
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
  color: #94a3b8;
}

/* ── second-section typography scaling ── */
body.staging1-page #second-section h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.12;
}

/* ── third-section (sticky-dark-section) ── */
body.staging1-page #third-section.sticky-dark-section {
  background-color: #0f172a;
}

body.staging1-page #third-section h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.12;
}

body.staging1-page #third-section .text-primary-light {
  color: #94b8d4;
}

@media (prefers-reduced-motion: reduce) {
  body.staging1-page #third-section [class*='hover:-translate-y-1'] {
    transform: none !important;
  }
}

/* ── fourth-section (boek) ── */
body.staging1-page #fourth-section {
  background-color: #ffffff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

body.staging1-page #fourth-section #boek-title-text {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.15;
}

body.staging1-page .book-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

body.staging1-page .book-3d {
  width: 175px;
  height: 318px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(12deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  animation: s1BookFloat 5s ease-in-out infinite;
}

body.staging1-page .book-container:hover .book-3d {
  transform: rotateY(-6deg) rotateX(6deg) scale(1.05);
  animation-play-state: paused;
}

@keyframes s1BookFloat {
  0%,
  100% {
    transform: rotateY(-24deg) rotateX(12deg) translateY(0);
  }
  50% {
    transform: rotateY(-20deg) rotateX(10deg) translateY(-8px);
  }
}

body.staging1-page .book-cover-front {
  position: absolute;
  width: 175px;
  height: 318px;
  background-color: #1e293b;
  border-radius: 2px 8px 8px 2px;
  transform: translateZ(12px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.15);
}

body.staging1-page .book-cover-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 2px 8px 8px 2px;
}

body.staging1-page .book-spine {
  position: absolute;
  width: 24px;
  height: 318px;
  left: -12px;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  transform: rotateY(-90deg) translateZ(0);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.staging1-page .book-spine-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: rotate(-90deg);
  white-space: nowrap;
}

body.staging1-page .book-pages-side {
  position: absolute;
  width: 20px;
  height: 312px;
  right: -10px;
  top: 3px;
  background: #eae9e4;
  background-image: linear-gradient(#eae9e4 50%, #e2e1db 50%);
  background-size: 100% 4px;
  transform: rotateY(90deg) translateZ(0);
  border-radius: 0 4px 4px 0;
}

body.staging1-page .book-cover-back {
  position: absolute;
  width: 175px;
  height: 318px;
  background-color: #0f172a;
  border-radius: 8px 2px 2px 8px;
  transform: rotateY(180deg) translateZ(12px);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2);
}

body.staging1-page .book-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

body.staging1-page .book-form-wrap.is-expanded {
  max-height: 850px;
  opacity: 1;
  margin-top: 1.5rem;
}

body.staging1-page .book-input {
  width: 100%;
  background-color: rgba(78, 94, 109, 0.05);
  border: 1px solid rgba(78, 94, 109, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: all 0.25s ease;
}

body.staging1-page .book-input:focus {
  border-color: #4e5e6d;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(78, 94, 109, 0.15);
}

body.staging1-page .book-input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

body.staging1-page .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

body.staging1-page .pulse-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: s1PulseGlow 1.8s ease-out infinite;
}

@keyframes s1PulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

body.staging1-page .flip-book-container {
  perspective: 1500px;
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

body.staging1-page .flip-book {
  position: relative;
  width: 600px;
  height: 400px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.staging1-page .flip-book::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateZ(0.5px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 90;
  pointer-events: none;
  border-radius: 2px;
}

body.staging1-page .flip-page {
  position: absolute;
  width: 300px;
  height: 100%;
  top: 0;
  left: 300px;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  z-index: 50;
  pointer-events: auto;
}

body.staging1-page .page-front,
body.staging1-page .page-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  background: #fafaf9;
  padding: 2rem;
  box-sizing: border-box;
  border: 1px solid #e7e5e4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  box-shadow: inset 4px 0 15px rgba(0, 0, 0, 0.015), 3px 4px 12px rgba(0, 0, 0, 0.05);
}

body.staging1-page .page-back {
  transform: rotateY(180deg);
  box-shadow: inset -4px 0 15px rgba(0, 0, 0, 0.015), -3px 4px 12px rgba(0, 0, 0, 0.05);
  border-left: none;
}

body.staging1-page .page-front {
  border-right: none;
}

body.staging1-page .flip-page:nth-child(1) {
  z-index: 40;
}
body.staging1-page .flip-page:nth-child(2) {
  z-index: 30;
}
body.staging1-page .flip-page:nth-child(3) {
  z-index: 20;
}
body.staging1-page .flip-page:nth-child(4) {
  z-index: 10;
}

body.staging1-page .flip-page.is-flipped {
  transform: rotateY(-180deg);
}

body.staging1-page .flip-page.is-flipped:nth-child(1) {
  z-index: 10;
}
body.staging1-page .flip-page.is-flipped:nth-child(2) {
  z-index: 20;
}
body.staging1-page .flip-page.is-flipped:nth-child(3) {
  z-index: 30;
}
body.staging1-page .flip-page.is-flipped:nth-child(4) {
  z-index: 40;
}

@media (max-width: 768px) {
  body.staging1-page .flip-book-container {
    transform: scale(0.8);
    width: 480px;
    height: 320px;
  }
}

@media (max-width: 640px) {
  body.staging1-page .flip-book-container {
    transform: scale(0.6);
    width: 360px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  body.staging1-page .flip-book-container {
    transform: scale(0.5);
    width: 300px;
    height: 200px;
  }
}

@media (max-width: 360px) {
  body.staging1-page .flip-book-container {
    transform: scale(0.4);
    width: 240px;
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.staging1-page .book-3d {
    animation: none !important;
  }

  body.staging1-page .pulse-dot::after {
    animation: none !important;
  }
}

/* ── fifth-section (scroll-reveal-cta) ── */
body.staging1-page #fifth-section.scroll-reveal-cta {
  background: linear-gradient(145deg, #f0f4f8 0%, #e8ecf0 40%, #edf1f5 100%);
  box-shadow:
    0 -25px 60px rgba(0, 0, 0, 0.12),
    0 -8px 20px rgba(0, 0, 0, 0.08),
    0 -2px 6px rgba(0, 0, 0, 0.05);
}

body.staging1-page #fifth-section.scroll-reveal-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(78, 94, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 94, 109, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

body.staging1-page .cta-watermark {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(14rem, 22vw, 20rem);
  font-weight: 700;
  color: rgba(78, 94, 109, 0.03);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -0.05em;
}

body.staging1-page .cta-top-edge {
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
}

body.staging1-page .cta-handle {
  width: 48px;
  height: 5px;
  background: rgba(78, 94, 109, 0.2);
  border-radius: 100px;
  margin: 20px auto 0;
  position: relative;
  z-index: 2;
}

body.staging1-page .cta-reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.staging1-page .cta-reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.staging1-page #fifth-section h2 {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}

body.staging1-page .testimonial-stack {
  position: relative;
  width: 100%;
  height: 250px;
  perspective: 1200px;
}

@media (min-width: 768px) {
  body.staging1-page .testimonial-stack {
    height: 230px;
  }
}

body.staging1-page .testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 16px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #ffffff !important;
  transform: translate(0, 0) rotate(0deg) scale(0.9);
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

body.staging1-page .testimonial-card.is-active {
  z-index: 30;
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0) rotate(-1deg) scale(1);
  box-shadow: 0 20px 45px rgba(78, 94, 109, 0.08);
}

body.staging1-page .testimonial-card.is-active:hover {
  transform: translate(0, -6px) rotate(0deg) scale(1.01);
  box-shadow: 0 24px 50px rgba(78, 94, 109, 0.12);
}

body.staging1-page .testimonial-card.is-next {
  z-index: 10;
  opacity: 0.8;
  pointer-events: auto;
  transform: translate(16px, 24px) rotate(1.5deg) scale(0.96);
  box-shadow: 0 8px 24px rgba(78, 94, 109, 0.04);
}

body.staging1-page .testimonial-card.is-next:hover {
  transform: translate(12px, 18px) rotate(0.5deg) scale(0.98);
  opacity: 0.9;
}

body.staging1-page .testimonial-card.is-swapping {
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translate(-120%, -20px) rotate(-8deg) scale(0.9);
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.staging1-page .cta-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.staging1-page .testimonial-card {
    transition: none !important;
  }
}

/* ── Modal scrollbar ── */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(78, 94, 109, 0.25);
  border-radius: 100px;
}

@media (prefers-reduced-motion: reduce) {
  body.staging1-page .animate-fade-up,
  body.staging1-page .scroll-indicator,
  body.staging1-page .animate-marquee-stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
