/* ===== Kept Response: premium layer. Each effect is gated by a class on <html> (fx-*) ===== */

/* 1. Ambient light: slow warm light drifting behind everything */
.fx-ambient body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 22% 28%, rgba(220, 80, 0, .13), transparent 62%),
    radial-gradient(34vmax 34vmax at 78% 72%, rgba(185, 166, 143, .09), transparent 62%),
    radial-gradient(30vmax 30vmax at 62% 12%, rgba(120, 70, 30, .16), transparent 62%);
  animation: kr-drift 26s ease-in-out infinite alternate;
}
@keyframes kr-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 4vmax, 0) rotate(-6deg) scale(.97); }
}

/* 2. Glass navigation: turns into a floating frosted pill on scroll */
.fx-glassnav .nav { transition: inset .6s cubic-bezier(.2, .7, .2, 1), padding .6s cubic-bezier(.2, .7, .2, 1), border-radius .6s, background .5s, box-shadow .5s, border-color .5s; }
.fx-glassnav .nav.scrolled {
  inset: 12px max(16px, calc((100% - 1180px) / 2)) auto;
  padding: 9px 9px 9px 22px; border-radius: 999px;
  background: rgba(46, 30, 18, .42);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 237, 215, .13);
  box-shadow: inset 0 1px 0 rgba(255, 237, 215, .10), 0 18px 50px -18px rgba(0, 0, 0, .7);
}

/* 3. Glass panels: cards, the form and the calculator become frosted glass */
.fx-glass .card, .fx-glass .info, .fx-glass .watch, .fx-glass .ev, .fx-glass .sent,
.fx-glass .contact form, .fx-glass .calc-in {
  background: linear-gradient(140deg, rgba(255, 237, 215, .075), rgba(255, 237, 215, .018) 55%);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 237, 215, .12);
  box-shadow: inset 0 1px 0 rgba(255, 237, 215, .10), 0 30px 60px -30px rgba(0, 0, 0, .75);
}
.fx-glass .contact form, .fx-glass .calc-in { border-radius: 24px; padding: clamp(22px, 3vw, 36px); }
.fx-glass .card, .fx-glass .ev, .fx-glass .info { border-radius: 20px; }
.fx-glass .ev.now { border-color: rgba(255, 237, 215, .55); }
.fx-glass .watch .play { background: rgba(255, 237, 215, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fx-glass .chip { background: rgba(255, 237, 215, .05); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(255, 237, 215, .12); }

/* 4. Spotlight: a soft light follows the cursor across cards */
.fx-spot .card, .fx-spot .info, .fx-spot .ev, .fx-spot .contact form, .fx-spot .calc-in { position: relative; isolation: isolate; }
.fx-spot .card::after, .fx-spot .info::after, .fx-spot .ev::after, .fx-spot .contact form::after, .fx-spot .calc-in::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 210, 160, .13), transparent 45%);
}
.fx-spot .card:hover::after, .fx-spot .info:hover::after, .fx-spot .ev:hover::after,
.fx-spot .contact form:hover::after, .fx-spot .calc-in:hover::after { opacity: 1; }

/* 5. The tag follows the cursor; the hero gently recedes on scroll */
.fx-tilt .hero .tag { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fx-tilt .hero-copy, .fx-tilt .hero .tag-stage, .fx-tilt .hero-foot { will-change: transform, opacity; }

/* 6. Headlines rise word by word; text fades in from a soft blur */
.fx-words .h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.fx-words .h .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .75, .15, 1); transition-delay: calc(var(--i) * 70ms); }
.fx-words .h.in .w > span { transform: none; }
.fx-words .rv { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s ease; }
.fx-words .rv.pending { filter: blur(10px); transform: translateY(30px) scale(.985); }

/* 7. Buttons: magnetic pull and a light sweep */
.fx-magnet .btn { position: relative; overflow: hidden; transition: background .25s, border-color .25s, transform .25s, translate .35s cubic-bezier(.2, .7, .2, 1); }
.fx-magnet .btn:not(.ghost) { box-shadow: inset 0 1px 0 rgba(255, 237, 215, .14), 0 10px 30px -12px rgba(220, 80, 0, .35); }
.fx-magnet .btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 237, 215, .22), transparent);
  transform: skewX(-18deg); transition: left .7s cubic-bezier(.2, .7, .2, 1);
}
.fx-magnet .btn:hover::before { left: 120%; }

/* 8. Numbers count up; the footer wordmark rises letter by letter */
.fx-count .giant .ch { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1.1s cubic-bezier(.2, .75, .15, 1), opacity 1.1s ease; transition-delay: calc(var(--i) * 40ms); }
.fx-count .giant { overflow: hidden; padding-top: .05em; }
.fx-count .giant.in .ch { transform: none; opacity: 1; }

/* 9. Scroll progress: a thin ember line across the top */
.kr-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ember), #ff8a3d); display: none; }
.fx-progress .kr-progress { display: block; }

@media (max-width: 900px) {
  .fx-glassnav .nav.scrolled { inset: 10px 10px auto; padding: 7px 7px 7px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-ambient body::before { animation: none; }
  .fx-words .h .w > span, .fx-count .giant .ch { transform: none; opacity: 1; }
}

/* ===== Kept Response: premium layer, part 2 ===== */

/* 10. Intro: the mark draws itself, then the curtain lifts */
.kr-intro { position: fixed; inset: 0; z-index: 300; background: var(--walnut); display: grid; place-items: center; transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.kr-intro.out { transform: translateY(-100%); }
.kr-intro .in { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: opacity .4s, transform .8s cubic-bezier(.76, 0, .24, 1); }
.kr-intro.out .in { opacity: 0; transform: translateY(-40px); }
.kr-intro svg { width: 92px; overflow: visible; }
.kr-intro svg path { fill: transparent; stroke: var(--cream); stroke-width: 1.4; stroke-dasharray: 420; stroke-dashoffset: 420; animation: kr-draw 1s cubic-bezier(.6, 0, .3, 1) forwards, kr-fill .5s .8s ease forwards; }
.kr-intro .word { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; opacity: 0; animation: kr-fadeup .7s .5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes kr-draw { to { stroke-dashoffset: 0; } }
@keyframes kr-fill { to { fill: var(--cream); } }
@keyframes kr-fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 11. Live notifications: iPhone-style alerts slide into the hero */
.kr-toast {
  position: absolute; z-index: 5; top: 92px; right: var(--gutter); width: min(350px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; padding: 13px 15px; border-radius: 22px;
  background: rgba(58, 38, 24, .5); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 237, 215, .14); box-shadow: inset 0 1px 0 rgba(255, 237, 215, .12), 0 24px 60px -18px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(-24px) scale(.94); pointer-events: none;
  transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.4, .5, 1);
}
.kr-toast.show { opacity: 1; transform: none; }
.kr-toast .ic { grid-row: span 3; width: 38px; height: 38px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; align-self: start; }
.kr-toast .ic svg { width: 24px; }
.kr-toast .top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--sand); letter-spacing: .03em; }
.kr-toast b { font-size: 14px; font-weight: 500; line-height: 1.25; }
.kr-toast span.msg { font-size: 13px; line-height: 1.35; color: var(--sand); }
.kr-toast[hidden] { display: none !important; }

/* 12. Text that lights up word by word as you scroll */
.fx-lit .lit .lw { color: rgba(255, 237, 215, .18); transition: color .25s linear; }
.fx-lit .lit .lw.on { color: var(--cream); }

/* 13. Ticker: a glass strip of inquiries being kept, moving endlessly */
.kr-ticker { display: none; position: relative; z-index: 2; overflow: hidden; border-block: 1px solid rgba(255, 237, 215, .1); background: rgba(255, 237, 215, .03); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.fx-ticker .kr-ticker { display: block; }
.kr-ticker .belt { display: flex; width: max-content; animation: kr-belt 48s linear infinite; }
.kr-ticker:hover .belt { animation-play-state: paused; }
.kr-ticker .item { display: flex; align-items: center; gap: 12px; padding: 18px 30px; white-space: nowrap; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--sand); }
.kr-ticker .item i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); font-style: normal; }
.kr-ticker .item em { font-style: normal; color: var(--cream); }
@keyframes kr-belt { to { transform: translateX(-50%); } }

/* 14. Cards tilt toward the cursor */
.fx-cardtilt .grid4 .card, .fx-cardtilt .fit .card { transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .3s, background .3s; transform-style: preserve-3d; will-change: transform; }

/* 15. FAQ answers open smoothly */
.fx-faq .faq details > p { transition: opacity .45s ease, transform .45s ease; }
.fx-faq .faq details.closing > p, .fx-faq .faq details.opening > p { opacity: 0; transform: translateY(-6px); }
.fx-faq .faq details { overflow: hidden; }

@media (max-width: 900px) {
  .tag-stage .kr-toast { top: -34px; right: 0; left: 0; margin: 0 auto; width: min(340px, 92%); }
  .kr-ticker .item { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .kr-ticker .belt { animation: none; }
}
