html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
.font-serif { font-family: 'Playfair Display', serif; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }
.reveal-delay-4.in-view { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}

/* Placeholder image panels */
.ph {
  position: relative;
  background: linear-gradient(135deg, #EFE8DB 0%, #E7DCC9 100%);
  border: 1px solid #DFD3BE;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: .5rem; color: #8A7B63; overflow: hidden;
}
.ph::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(#00000008 1px, transparent 1px);
  background-size: 16px 16px;
}
.ph .ph-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; z-index: 1; text-align: center; padding: 0 1rem; }

/* Kaizen pillar line connectors (method page) */
.kz-line { stroke: #DFD3BE; stroke-width: 2; fill: none; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.2s ease, stroke 1.2s ease; }
.kz-line.active { stroke-dashoffset: 0; stroke: #F97316; }

/* Accordion */
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; cursor: pointer; }

/* Before/after slider (results page) */
.ba-wrap { position: relative; overflow: hidden; touch-action: pan-y; }
.ba-after { position: absolute; inset: 0; overflow: hidden; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #FAF7F2; cursor: ew-resize; }
.ba-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 9999px; background: #F97316; }
.ba-handle::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; font-size: 18px; z-index: 2; font-weight: 700; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.node { transition: transform .4s ease, box-shadow .4s ease; }
.node:hover, .node:focus-visible { transform: scale(1.08); box-shadow: 0 10px 30px -10px rgba(30,30,30,.25); }
