/* Hungarocopter - shared visual effects (all pages). Decorative only; content never depends on them. */

/* ---- 1. Spotlight: a soft red glow follows the cursor across a card ---- */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(204,0,0,.17), transparent 62%); }
.fx-spot:hover::after { opacity: 1; }
@media (hover: none) { .fx-spot::after { display: none; } }

/* ---- 2. Gauge rings with count-up numbers ---- */
.fx-ring { --s: 7.5rem; position: relative; width: var(--s); height: var(--s); margin: 0 auto 1.1rem; display: grid; place-items: center; }
.fx-ring--sm { --s: 4.6rem; }
.fx-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fx-ring .trk { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 2.5; }
.fx-ring .bar { fill: none; stroke: #cc0000; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
    filter: drop-shadow(0 0 5px rgba(204,0,0,.6)); transition: stroke-dashoffset 1.7s cubic-bezier(.2,.8,.2,1); }
.fx-ring.in .bar { stroke-dashoffset: calc(326.73 * (1 - var(--p, 1))); }
.fx-ring__num { position: relative; font-weight: 800; color: #fff; font-size: calc(var(--s) * .3); line-height: 1; letter-spacing: -.02em; }
.fx-ring__num i { font-style: normal; color: #cc0000; font-size: .46em; font-weight: 700; margin-left: .15em; letter-spacing: 0; }
.fx-ring__ico { position: relative; color: #cc0000; font-size: calc(var(--s) * .34); }
@media (max-width: 640px) { .fx-ring { --s: 6.2rem; } .fx-ring--sm { --s: 4.2rem; } }

/* ---- 3. Marquee ticker (decorative; the facts it repeats are on the page) ---- */
.fx-marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.fx-marquee__track { display: flex; flex-shrink: 0; align-items: center; min-width: 100%; justify-content: space-around; gap: 2.2rem; padding-right: 2.2rem; animation: fxScroll 46s linear infinite; }
.fx-marquee span { font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.fx-marquee b { color: #cc0000; font-weight: 400; }
@keyframes fxScroll { to { transform: translateX(-100%); } }
.fx-marquee:hover .fx-marquee__track { animation-play-state: paused; }

/* ---- 4. Faint outlined section numeral behind a centred heading ---- */
.fx-head { position: relative; }
.fx-head::before { content: attr(data-n); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); z-index: 0; pointer-events: none;
    font: 800 clamp(7rem, 22vw, 16rem)/1 'Manrope', sans-serif; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); }
.fx-head > * { position: relative; z-index: 1; }

/* ---- 5. Side dots: where am I on the page (wide screens) ---- */
.fx-dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 60; display: none; flex-direction: column; gap: 14px; }
@media (min-width: 1280px) { .fx-dots { display: flex; } }
.fx-dots a { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); transition: all .3s; }
.fx-dots a::after { content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px); opacity: 0; pointer-events: none;
    font: 700 10px/1 'JetBrains Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.75); padding: 6px 9px; border-left: 2px solid #cc0000; white-space: nowrap; transition: all .25s; }
.fx-dots a:hover::after, .fx-dots a:focus-visible::after { opacity: 1; transform: translateY(-50%); }
.fx-dots a.on { background: #cc0000; border-color: #cc0000; box-shadow: 0 0 10px rgba(204,0,0,.8); transform: scale(1.25); }

/* ---- 6. Footer wordmark ---- */
.fx-mark { position: absolute; left: 50%; bottom: -.16em; transform: translateX(-50%); z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
    font: 800 clamp(3.2rem, 13.5vw, 12rem)/1 'Manrope', sans-serif; letter-spacing: -.04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.055); }

/* ---- 7. Floating spec chips on photos ---- */
.fx-chip { position: absolute; z-index: 3; padding: 9px 13px; background: rgba(5,5,5,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-left: 2px solid #cc0000; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: fxFloat 6s ease-in-out infinite; }
.fx-chip b { display: block; font: 700 1.25rem/1 'JetBrains Mono', monospace; color: #fff; }
.fx-chip small { display: block; margin-top: 4px; font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@keyframes fxFloat { 50% { transform: translateY(-7px); } }

/* ---- 8. Timeline: the line draws in, dots pop, the open item pulses (only once fx.js has run) ---- */
.fx-js [data-draw] { clip-path: inset(0 0 100% 0); transition: clip-path 2.4s cubic-bezier(.4,0,.2,1); }
.fx-js [data-draw].in { clip-path: inset(0); }
.fx-js [data-aos].aos-animate .milestone-dot { animation: fxPop .7s .25s cubic-bezier(.34,1.56,.64,1) both; }
.milestone-dot.live { animation: fxPulse 2.4s ease-out infinite; }
.fx-js [data-aos].aos-animate .milestone-dot.live { animation: fxPop .7s .25s cubic-bezier(.34,1.56,.64,1) both, fxPulse 2.4s 1.2s ease-out infinite; }
@keyframes fxPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fxPulse { 0% { box-shadow: 0 0 0 0 rgba(204,0,0,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(204,0,0,0); } }

@media (prefers-reduced-motion: reduce) {
    .fx-marquee__track, .fx-chip { animation: none; }
    .milestone-dot.live { animation: none; }
    .fx-ring .bar { transition: none; }
}

/* ---- Minimum text size, and phone tap targets a finger can hit ---- */
.fx-tap { min-height: 2.5rem; }
[class*="text-[8px]"], [class*="text-[8.5px]"], [class*="text-[9px]"], .cert-tag { font-size: 10px !important; }   /* nothing below 10px, at any width */
@media (max-width: 767px) {
    footer a, footer button { display: inline-flex; align-items: center; min-height: 40px; }
    footer a:has(svg), footer a:has(> i) { min-width: 40px; justify-content: center; }
}

/* ---- Mobile menu (every page): animated burger + a full-height, scrollable sheet. Shows below 1280px. ---- */
.fx-burger { position: relative; z-index: 51; flex: none; width: 48px; height: 48px; margin-right: -10px; padding: 0; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fx-burger__bars { display: grid; gap: 6px; }
.fx-burger i { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .38s cubic-bezier(.4, 0, .2, 1), opacity .2s, width .3s; }
.fx-burger i:nth-child(2) { width: 16px; justify-self: end; }
.fx-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.fx-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; width: 24px; }
.fx-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.fx-burger:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 6px; }
/* the sheet scrolls BELOW the header, so rows never slide under the logo; its background (::before) still fills the whole screen, behind the header too */
.fx-menu { position: fixed; top: var(--fx-nav, 80px); left: 0; right: 0; bottom: 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 6px; opacity: 0; transition: opacity .3s ease; }
.fx-menu::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 46% at 100% 4%, rgba(204,0,0,.17), transparent 70%), #060606; }
.fx-menu[hidden] { display: none; }
.fx-menu.is-open { opacity: 1; }
.fx-menu__in { width: min(100% - 2.4rem, 30rem); margin: 0 auto; padding: 4px 0 calc(34px + env(safe-area-inset-bottom)); }
.fx-menu__lbl { margin: 20px 0 2px; font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.36); }
.fx-menu__lbl:first-child { margin-top: 10px; }
.fx-row { position: relative; display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 2px; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.84); font: 800 16px/1.1 'Manrope', sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s; }
.fx-row .ic { width: 20px; flex: none; text-align: center; font-size: 15px; color: rgba(255,255,255,.4); transition: color .2s; }
.fx-row span { flex: 1; min-width: 0; }
.fx-row .arr { flex: none; font-size: 11px; color: rgba(255,255,255,.28); transition: transform .25s, color .25s; }
.fx-row:active { background: rgba(255,255,255,.04); }
.fx-row:hover .arr, .fx-row:focus-visible .arr { transform: translateX(4px); color: #fff; }
.fx-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.fx-row[aria-current="page"] { color: #fff; }
.fx-row[aria-current="page"] .ic { color: #ef4444; }
.fx-row[aria-current="page"]::before { content: ''; position: absolute; left: -1.2rem; top: 14px; bottom: 14px; width: 3px; background: #cc0000; }
.fx-menu__cta { display: flex; gap: 10px; margin-top: 26px; }
.fx-menu__cta > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font: 800 11px/1 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s, color .2s; }
.fx-menu__cta > .is-primary { background: #cc0000; border-color: #cc0000; }
.fx-menu__cta > *:active { background: #fff; color: #000; border-color: #fff; }
.fx-menu__social { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.fx-menu__social a { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: rgba(255,255,255,.66); font-size: 18px; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s, border-color .2s; }
.fx-menu__social a:hover, .fx-menu__social a:active { color: #fff; border-color: rgba(255,255,255,.5); }
.fx-menu.is-open .fx-row, .fx-menu.is-open .fx-menu__cta, .fx-menu.is-open .fx-menu__social { animation: fx-menu-in .5s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(var(--i, 0) * 32ms + 70ms); }
@keyframes fx-menu-in { from { opacity: 0; transform: translateY(10px); } }
html.fx-lock, html.fx-lock body { overflow: hidden; }
@media (min-width: 1280px) { .fx-burger, .fx-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    .fx-menu { transition: none; }
    .fx-burger i, .fx-row, .fx-row .arr { transition: none; }
    .fx-menu.is-open .fx-row, .fx-menu.is-open .fx-menu__cta, .fx-menu.is-open .fx-menu__social { animation: none; }
}
