html {
  background-color: #faf8f4;
  font-size: 17px;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #faf8f4;
  color: #1e1713;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}
/* Spinning rings' rotated boxes poke past the viewport on phones. Clip on main, not body (body's overflow
   is handed to the viewport and ignored by mobile browsers); clip, unlike hidden, keeps sticky working. */
main { overflow-x: clip; }
/* iOS Safari zooms the page when focusing a field under 16px */
@media (max-width: 1023px) {
  input, select, textarea { font-size: 16px !important; }
}
::selection {
  background-color: #7b1e24;
  color: #f5f1eb;
}
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 700 !important; letter-spacing: -0.025em; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Brand utilities */
.grain-overlay {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  position: fixed;
  z-index: 5;
}
.text-outline { -webkit-text-stroke: 1px #1e171366; color: transparent; }
.text-outline-light { -webkit-text-stroke: 1px #f5f1eb59; color: transparent; }
.spotlight { background: radial-gradient(ellipse 60% 50% at 50% 30%, #b88a5a24, #0000 70%); }

/* Dark zones flip "espresso" text/borders to ivory (mirrors the original) */
.dark-zone { color: #f5f1eb; }
.dark-zone[class*="text-espresso"],
.dark-zone [class*="text-espresso"] { color: rgb(245 241 235 / var(--tw-text-opacity, 1)) !important; }
.dark-zone[class*="border-espresso"],
.dark-zone [class*="border-espresso"] { border-color: rgb(245 241 235 / var(--tw-border-opacity, 1)) !important; }

/* Scroll reveal (framer-motion whileInView equivalent) */
.reveal {
  opacity: 0;
  transform: translate3d(0, var(--y, 40px), 0);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Headline line mask reveal */
.line-up {
  display: block;
  transform: translateY(115%);
  animation: lineUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0.3s) forwards;
}
@keyframes lineUp { to { transform: translateY(0); } }

/* Fade up on load */
.fade-up {
  opacity: 0;
  transform: translateY(var(--y, 20px));
  animation: fadeUp 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) var(--d, 0s) forwards;
}
.fade-in { opacity: 0; animation: fadeIn 1s ease var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Flywheel */
.spin-cw { animation: spin 90s linear infinite; }
.spin-ccw { animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.fw-pop {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.is-in .fw-pop { opacity: 1; transform: none; }
.fw-float { animation: fwFloat 3.5s ease-in-out infinite; }
@keyframes fwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Flywheel: pings, orbiting comet, spoke, active chip, caption */
.fw-ping {
  position: absolute; inset: 36%; border-radius: 9999px; pointer-events: none;
  border: 1px solid rgba(184, 138, 90, 0.55);
  animation: fwPing 4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes fwPing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.35); opacity: 0; } }
.fw-orbit { animation: spin 14s linear infinite; pointer-events: none; }
.fw-comet {
  position: absolute; left: 50%; top: 3%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 9999px;
  background: #f0cfa6;
  box-shadow: 0 0 10px 3px rgba(184, 138, 90, 0.9), 0 0 32px 10px rgba(184, 138, 90, 0.35);
}
.fw-trail {
  position: absolute; inset: 3%; border-radius: 9999px;
  background: conic-gradient(from 0deg, transparent 0turn, transparent 0.72turn, rgba(184, 138, 90, 0.55) 1turn);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.fw-spoke {
  stroke: rgba(184, 138, 90, 0.75); stroke-width: 0.35; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.fw-spoke.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.fw-spoke-dot { fill: #b88a5a; opacity: 0; transition: opacity 0.3s 0.45s; }
.fw-spoke.is-drawn + .fw-spoke-dot { opacity: 1; }
.fw-node { cursor: pointer; transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s, scale 0.4s; }
.fw-node.is-active {
  background-color: #b88a5a !important; color: #0e0a0b !important; border-color: #b88a5a !important;
  box-shadow: 0 0 0 4px rgba(184, 138, 90, 0.18), 0 12px 36px rgba(184, 138, 90, 0.45) !important;
  scale: 1.1;
}
.fw-node.is-active svg { color: #0e0a0b !important; }
.fw-compact .fw-label { display: none; }
.fw-compact .fw-node { padding: 0.5rem; }
.fw-caption { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.fw-caption.is-on { opacity: 1; transform: none; }

/* Video viewfinder */
.rec-dot { animation: recBlink 1.2s steps(1) infinite; box-shadow: 0 0 8px rgba(229, 72, 77, 0.8); }
@keyframes recBlink { 50% { opacity: 0.15; } }

/* Logo */
.brand-mark { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.fw-logo { filter: drop-shadow(0 0 18px rgba(184, 138, 90, 0.35)); }

/* Testimonials carousel */
.rv-viewport { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.rv-viewport:focus-visible { box-shadow: 0 0 0 2px #b88a5a; border-radius: 1rem; }
.rv-viewport.is-dragging { cursor: grabbing; }
.rv-slide {
  opacity: 0.3; transform: scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv-slide.is-active { opacity: 1; transform: none; }
.rv-slide .rv-text, .rv-slide figcaption {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.rv-slide.is-active .rv-text, .rv-slide.is-active figcaption { opacity: 1; transform: none; }
.rv-slide.is-active figcaption { transition-delay: 0.3s; }
.rv-card { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.4s ease; will-change: transform; }
.rv-card:hover { border-color: rgba(184, 138, 90, 0.5); }
.rv-quote, .rv-glyph, .rv-avatar { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rv-card:hover .rv-quote { transform: rotate(-14deg) scale(1.08); }
.rv-card:hover .rv-glyph { transform: translate(-10px, 10px) scale(1.08); }
.rv-card:hover .rv-avatar { transform: scale(1.1); }
.rv-bg-glyph { animation: rvFloat 9s ease-in-out infinite; }
@keyframes rvFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(-3deg); } }
.rv-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(28, 18, 20, 0.2); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s; }
.rv-dot:hover { background: rgba(123, 30, 36, 0.5); }
.rv-dot.is-active { width: 30px; background: #7b1e24; }
.rv-bar { transform: scaleX(0); transition: transform 0.08s linear, opacity 0.3s; }
.rv.is-paused .rv-bar { opacity: 0.45; }
.rv-cur { display: inline-block; animation: rvCount 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rvCount { from { opacity: 0; transform: translateY(8px); } }

/* Mobile menu */
.mobile-menu { animation: fadeIn 0.4s ease forwards; }
.mm-item { opacity: 0; transform: translateX(-30px); animation: mmIn 0.5s ease var(--d, 0s) forwards; }
.mm-cta { opacity: 0; animation: fadeIn 0.5s ease 0.7s forwards; }
@keyframes mmIn { to { opacity: 1; transform: none; } }


/* Toast */
.toast {
  background: #1e1713;
  color: #f5f1eb;
  border: 1px solid rgba(184, 138, 90, 0.35);
  animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* ================= Engagement effects ================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #7b1e24, #b88a5a);
  pointer-events: none;
}

/* Header hides on scroll down, returns on scroll up */
.site-header { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Cursor follower (fine pointers only) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  border-radius: 9999px; opacity: 0; will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #b88a5a; transition: opacity 0.3s; }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(184, 138, 90, 0.7);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor-dot.is-visible, .cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(184, 138, 90, 0.12); }

/* Card spotlight that follows the mouse */
.card-spot {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 138, 90, 0.22), transparent 45%);
  opacity: 0; transition: opacity 0.4s ease;
}
[data-spotlight]:hover .card-spot { opacity: 1; }

/* Touch devices: show the card imagery since there is no hover */
@media (hover: none) {
  .svc-card .svc-img, .svc-card .svc-ov { opacity: 1 !important; transform: none !important; }
  .svc-card .svc-title, .svc-card .svc-arrow { color: #f5f1eb !important; }
  .svc-card .svc-desc { color: rgba(245, 241, 235, 0.85) !important; }
  .svc-card .svc-tags { color: #b88a5a !important; }
  .svc-card .svc-arrow { transform: none !important; }
}

/* Marquees pause while hovered */
.animate-marquee:hover { animation-play-state: paused; }

/* Page transition curtain */
html.pt-cover::after {
  content: "";
  position: fixed; inset: 0; z-index: 95;
  background: #0e0a0b url("logo-cream.png") center / clamp(96px, 12vw, 150px) no-repeat;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1) 0.15s;
}
html.pt-cover.pt-reveal::after { transform: translateY(-100%); }
.page-curtain {
  position: fixed; inset: 0; z-index: 95;
  background: #0e0a0b url("logo-cream.png") center / clamp(96px, 12vw, 150px) no-repeat;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.page-curtain.is-in { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html.pt-cover::after { display: none; }
  .cursor-dot, .cursor-ring, .scroll-progress { display: none; }
  .reveal, .line-up, .fade-up, .fade-in, .fw-pop, .mm-item, .mm-cta {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .animate-marquee, .spin-cw, .spin-ccw, .fw-float, .fw-orbit, .fw-ping, .wa-ping { animation: none !important; }
  .fw-ping { display: none; }
  .rv-slide, .rv-slide .rv-text, .rv-slide figcaption { opacity: 1 !important; transform: none !important; }
  .rv-bg-glyph, .rec-dot { animation: none !important; }
}
