/* =========================================================================
   PROPERTY GOLD — FX layer (site-wide)
   Kinetic headings · decoding labels · image curtain reveals · holographic
   card sheen · section horizon lines · section HUD · button ripple ·
   scroll ring · film grain · footer signature.
   Every effect is progressive: without JS or with reduced motion the page
   renders exactly as before.
   ========================================================================= */

/* ---------- Film grain (static, composited once) ---------- */
.fx-grain {
    position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Kinetic headings: words rise out of a mask ---------- */
.fx-split .fxw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.fx-split .fxw-i {
    display: inline-block; transform: translate3d(0, 105%, 0) rotate(3deg); opacity: 0; filter: blur(6px);
    transition: transform 1s var(--ease-lux, cubic-bezier(.22, .8, .2, 1)), opacity .8s ease, filter .9s ease;
    transition-delay: calc(var(--i, 0) * 55ms);
    transform-origin: 0 100%;
}
.fx-split.fx-in .fxw-i { transform: none; opacity: 1; filter: none; }
/* Gold light sweeps once across the accent word after it lands */
.fx-split.fx-in em, .fx-split.fx-in .fx-accent { position: relative; }
.fx-sheen {
    position: absolute; inset: -10% -4%; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 170, .75) 50%, transparent 65%);
    background-size: 250% 100%; background-position: 120% 0; opacity: 0;
}
.fx-split.fx-in .fx-sheen { animation: fxSheen 1.6s .7s var(--ease-lux, ease) forwards; }
@keyframes fxSheen { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 0; background-position: -60% 0; } }

/* ---------- Decoding labels ---------- */
.fx-decoding { font-variant-numeric: tabular-nums; }

/* ---------- Image curtain reveal ---------- */
.fx-img { transition: clip-path 1.25s var(--ease-lux, ease), filter 1.4s ease; }
.fx-img.fx-hide { clip-path: inset(0 0 100% 0); filter: brightness(1.8) saturate(.2); }
.fx-img.fx-show { clip-path: inset(0 0 0 0); filter: none; }
.fx-scanline {
    position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, transparent, #F1C64A 20%, #FFF3C4 50%, #F1C64A 80%, transparent);
    box-shadow: 0 0 18px 2px rgba(241, 198, 74, .55); opacity: 0;
}
.fx-scanline.run { animation: fxScan 1.25s var(--ease-lux, ease) forwards; }
@keyframes fxScan { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ---------- Holographic sheen on cards ---------- */
.fx-holo {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; opacity: 0;
    transition: opacity .45s ease;
    background:
        radial-gradient(420px circle at var(--hx, 50%) var(--hy, 50%), rgba(241, 198, 74, .16), transparent 45%),
        conic-gradient(from calc(var(--ha, 0) * 1deg) at var(--hx, 50%) var(--hy, 50%),
            rgba(241, 198, 74, 0), rgba(255, 226, 150, .10), rgba(120, 220, 180, .06), rgba(241, 198, 74, 0) 40%, rgba(241, 198, 74, 0));
    mix-blend-mode: screen;
}
.fx-holo::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: radial-gradient(260px circle at var(--hx, 50%) var(--hy, 50%), rgba(241, 198, 74, .9), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.fx-holo-host:hover > .fx-holo { opacity: 1; }

/* ---------- Section horizon line ---------- */
.fx-horizon {
    position: absolute; top: 0; left: 50%; width: min(1100px, 86%); height: 1px; transform: translateX(-50%) scaleX(0);
    pointer-events: none; z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .55) 30%, rgba(255, 236, 170, .9) 50%, rgba(212, 175, 55, .55) 70%, transparent);
    transition: transform 1.6s var(--ease-lux, ease);
}
.fx-horizon::after {
    content: ""; position: absolute; top: -2px; left: 0; width: 90px; height: 5px; border-radius: 50%;
    background: radial-gradient(closest-side, #FFF3C4, rgba(241, 198, 74, .5), transparent); opacity: 0; filter: blur(1px);
}
.fx-horizon.fx-in { transform: translateX(-50%) scaleX(1); }
.fx-horizon.fx-in::after { animation: fxGlint 2.2s .5s var(--ease-lux, ease) forwards; }
@keyframes fxGlint { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 90px); opacity: 0; } }

/* ---------- Section HUD (desktop) ---------- */
.fx-hud {
    position: fixed; left: 22px; top: 50%; transform: translate(-12px, -50%); z-index: 60; opacity: 0; pointer-events: none;
    display: flex; flex-direction: column; gap: 14px; transition: opacity .5s, transform .6s var(--ease-lux, ease);
}
.fx-hud.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.fx-hud::before {
    content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .1);
}
.fx-hud-fill {
    position: absolute; left: 4px; top: 6px; width: 1px; height: calc((100% - 12px) * var(--p, 0));
    background: linear-gradient(#F1C64A, #B8860B); box-shadow: 0 0 8px rgba(241, 198, 74, .6);
}
.fx-hud a {
    position: relative; display: flex; align-items: center; gap: 12px; height: 9px; text-decoration: none;
    font: 500 10px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.fx-hud a i {
    flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: #0A0D0B;
    transition: border-color .3s, background .3s, box-shadow .3s, transform .3s var(--ease-lux, ease);
}
.fx-hud a span {
    opacity: 0; transform: translateX(-6px); white-space: nowrap; padding: 5px 9px; border-radius: 6px;
    background: rgba(10, 13, 11, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(212, 175, 55, .18);
    transition: opacity .3s, transform .35s var(--ease-lux, ease);
}
.fx-hud a:hover span, .fx-hud a:focus-visible span { opacity: 1; transform: none; }
.fx-hud a.on span { color: #F1C64A; }
.fx-hud a.on i { border-color: #F1C64A; background: #F1C64A; box-shadow: 0 0 0 4px rgba(241, 198, 74, .15), 0 0 12px rgba(241, 198, 74, .6); transform: scale(1.15); }
.fx-hud a:focus-visible { outline: none; }
.fx-hud a:focus-visible i { box-shadow: 0 0 0 3px rgba(241, 198, 74, .55); }
.fx-hud:not(:hover) a:not(.on) span { opacity: 0; }
@media (max-width: 1379px) { .fx-hud { display: none; } }

/* ---------- Button ripple ---------- */
.fx-ripple {
    position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
    animation: fxRipple .7s var(--ease-lux, ease) forwards; z-index: 0;
}
@keyframes fxRipple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---------- Scroll progress ring on "back to top" ---------- */
.fab-top .fab-ic { position: relative; }
.fab-item .fab-ic svg.fx-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.fx-ring circle { fill: none; stroke-width: 1.6; }
.fx-ring .bg { stroke: rgba(255, 255, 255, .12); }
.fx-ring .fg { stroke: #F1C64A; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(241, 198, 74, .7)); }

/* ---------- Scroll-lit text ---------- */
.fx-lit .fxl { color: inherit; opacity: .22; transition: opacity .25s linear; }
.fx-lit .fxl.on { opacity: 1; }

/* ---------- Footer signature wordmark ---------- */
.fx-sign {
    position: relative; overflow: hidden; padding: 6px 0 0; margin-top: 8px; user-select: none; pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.fx-sign-txt {
    display: block; text-align: center; white-space: nowrap; line-height: .82;
    font: 300 clamp(44px, 12.4vw, 190px)/.82 'Fraunces', Georgia, serif; letter-spacing: -.035em;
    color: transparent; -webkit-text-stroke: 1px rgba(212, 175, 55, .28);
    background: linear-gradient(90deg, #B8860B, #F1C64A 40%, #FFF0B8 50%, #F1C64A 60%, #B8860B) no-repeat;
    background-size: calc(var(--p, 0) * 100%) 100%;
    -webkit-background-clip: text; background-clip: text;
    transform: translateY(calc((1 - var(--p, 0)) * 18%));
    padding-bottom: .22em;
}

/* ---------- Reduced motion: everything static and visible ---------- */
@media (prefers-reduced-motion: reduce) {
        .fx-horizon { transition: none !important; transform: translateX(-50%) scaleX(1) !important; }
    .fx-split .fxw-i, .fx-img { transition: none !important; transform: none !important; opacity: 1 !important; filter: none !important; clip-path: none !important; }
    .fx-sheen, .fx-scanline, .fx-ripple { display: none !important; }
    .fx-sign-txt { background-size: 100% 100%; transform: none; }
    .fx-lit .fxl { opacity: 1; }
}
@media print { .fx-grain, .fx-hud, .fx-holo, .fx-sign { display: none !important; } }
