/* ============================================================
   KJ AERIAL FILMS — Components & Layout
   ============================================================ */

/* ---------- Page ambient background ---------- */
.bg-field { position: fixed; inset: 0; z-index: -2; background: var(--grad-hero); }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(rgba(240,198,79,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,198,79,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
#fx-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ============================================================
   BRAND MARK (KJ logo) + animation
   ============================================================ */
.brand-mark { width: 56px; height: 36px; flex: none; overflow: visible; }
.kj-letters { font-family: var(--font-display); font-weight: 800; }
.kj-swoosh { transform-origin: left center; }
.kj-drone { transform-box: fill-box; transform-origin: center; }

/* gentle idle hover on the drone in nav */
.brand:hover .kj-drone { animation: droneHover 1.6s var(--ease-in-out) infinite; }
@keyframes droneHover { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2.5px) } }
.brand:hover .kj-swoosh { filter: drop-shadow(0 0 6px rgba(216,179,92,0.6)); }

/* Big animated lockup (preloader / hero) */
.kj-lockup { width: min(420px, 78vw); height: auto; overflow: visible; }
.kj-lockup .sw { stroke-dasharray: 420; stroke-dashoffset: 420; animation: drawSwoosh 1.1s var(--ease-out) .15s forwards; }
.kj-lockup .sw-fill { opacity: 0; animation: fadeIn .6s ease .9s forwards; }
.kj-lockup .L { opacity: 0; transform: translateY(14px); }
.kj-lockup .L1 { animation: riseIn .7s var(--ease-out) .35s forwards; }
.kj-lockup .L2 { animation: riseIn .7s var(--ease-out) .5s forwards; }
.kj-lockup .dr { opacity: 0; }
.kj-lockup .dr.fly { animation: droneFly 1.1s var(--ease-out) .7s forwards; }
.kj-lockup .wm { opacity: 0; animation: fadeUp .7s var(--ease-out) 1.1s forwards; }
.kj-lockup .tg { opacity: 0; animation: fadeUp .7s var(--ease-out) 1.3s forwards; }
.kj-lockup .shine { mix-blend-mode: screen; opacity: 0; animation: shineSweep 1.4s ease 1.4s forwards; }

@keyframes drawSwoosh { to { stroke-dashoffset: 0; } }
@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes droneFly { 0% { opacity: 0; transform: translate(-60px,18px) scale(.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes shineSweep { 0% { opacity: 0; transform: translateX(-40%); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateX(40%); } }

/* ---------- Custom cursor — gold drone targeting reticle ---------- */
body.cursor-custom { cursor: none; }
body.cursor-custom a, body.cursor-custom button, body.cursor-custom .chip, body.cursor-custom .opt, body.cursor-custom canvas { cursor: none; }
body.cursor-custom input, body.cursor-custom textarea, body.cursor-custom select { cursor: text; }
.cursor-trail { position: fixed; inset: 0; z-index: 9998; pointer-events: none; mix-blend-mode: screen; }
.reticle {
  position: fixed; top: 0; left: 0; width: 44px; height: 44px; z-index: 9999; pointer-events: none;
  mix-blend-mode: screen; will-change: transform; transition: width .22s var(--ease-out), height .22s var(--ease-out);
}
.reticle .ret-ring { position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(216,179,92,0.7); animation: retspin 6s linear infinite; transition: border-color .22s, opacity .22s; }
.reticle .ret-dot { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); transform: translate(-50%,-50%); box-shadow: 0 0 8px var(--gold); }
.reticle .ret-b { position: absolute; width: 8px; height: 8px; border: 1.5px solid var(--gold); transition: all .22s var(--ease-out); }
.reticle .ret-b.tl { top: 2px; left: 2px; border-right: 0; border-bottom: 0; }
.reticle .ret-b.tr { top: 2px; right: 2px; border-left: 0; border-bottom: 0; }
.reticle .ret-b.bl { bottom: 2px; left: 2px; border-right: 0; border-top: 0; }
.reticle .ret-b.br { bottom: 2px; right: 2px; border-left: 0; border-top: 0; }
.reticle.lock { width: 62px; height: 62px; }
.reticle.lock .ret-ring { border-style: solid; border-color: var(--gold-bright); opacity: 0.95; }
.reticle.fire .ret-ring { animation: retspin 6s linear infinite, retfire .26s var(--ease-out); }
@keyframes retspin { to { transform: rotate(360deg); } }
@keyframes retfire { 50% { transform: scale(0.7); } }
@media (hover: none), (pointer: coarse) { .reticle, .cursor-trail { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px rgba(216,179,92,0.5); }

/* ---------- Ambient aurora (drifting gold light) ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.7; mix-blend-mode: screen; will-change: transform; }
.aurora .a1 { width: 50vw; height: 50vw; left: -12vw; top: -10vw; background: radial-gradient(closest-side, rgba(255,178,77,0.40), transparent); animation: drift1 24s var(--ease-in-out) infinite; }
.aurora .a2 { width: 44vw; height: 44vw; right: -10vw; top: 14vh; background: radial-gradient(closest-side, rgba(255,122,60,0.30), transparent); animation: drift2 30s var(--ease-in-out) infinite; }
.aurora .a3 { width: 40vw; height: 40vw; left: 26vw; bottom: -14vw; background: radial-gradient(closest-side, rgba(255,233,160,0.28), transparent); animation: drift3 36s var(--ease-in-out) infinite; }
.aurora .a4 { width: 30vw; height: 30vw; right: 18vw; bottom: 8vh; background: radial-gradient(closest-side, rgba(240,198,79,0.24), transparent); animation: drift1 40s var(--ease-in-out) infinite reverse; }
@keyframes drift1 { 50% { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-12vw, -8vh) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate(8vw, -14vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* ---------- Globe zoom controls ---------- */
.globe-controls { position: absolute; right: 4%; bottom: 6%; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.globe-controls button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(12,11,9,0.6); backdrop-filter: blur(8px); color: var(--gold); font-size: 1.1rem; display: grid; place-items: center; transition: .25s; }
.globe-controls button:hover { border-color: var(--gold); color: var(--gold-bright); box-shadow: var(--glow-gold); }
.globe-hint { position: absolute; left: 4%; bottom: 6%; z-index: 3; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); pointer-events: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--black);
  display: grid; place-items: center; transition: opacity .8s ease, visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; }
.pre-bar { width: 220px; height: 2px; background: rgba(255,255,255,0.1); margin: 30px auto 0; overflow: hidden; border-radius: 2px; }
.pre-bar span { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width .2s linear; }
.pre-pct { margin-top: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--faint); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 10, 0.74);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); height: 64px;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.96rem; line-height: 1; }
.brand-name b { color: var(--gold); font-weight: 800; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.34em; color: var(--faint); margin-top: 4px; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.86rem; color: var(--muted); position: relative; transition: color .3s; letter-spacing: 0.02em; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--gold); transition: width .3s var(--ease-out); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.sound-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--muted); transition: all .3s;
}
.sound-toggle:hover { color: var(--gold); border-color: var(--gold); }
.sound-toggle .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle .bars i { width: 2px; background: currentColor; height: 4px; border-radius: 2px; transition: height .3s; }
.sound-toggle.on { color: var(--gold); border-color: var(--gold); }
.sound-toggle.on .bars i { animation: eq 0.9s ease-in-out infinite; }
.sound-toggle.on .bars i:nth-child(2){ animation-delay: .15s } .sound-toggle.on .bars i:nth-child(3){ animation-delay: .3s } .sound-toggle.on .bars i:nth-child(4){ animation-delay: .1s }
@keyframes eq { 0%,100%{height:4px} 50%{height:13px} }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); }
.burger span { display: block; width: 18px; height: 2px; background: var(--gold); margin: 3px auto; transition: .3s; }

/* mobile nav */
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: rgba(8,8,10,0.97); backdrop-filter: blur(20px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video, .hero-video img { width: 100%; height: 100%; object-fit: cover; }
.hero-canvas { position: absolute; inset: 0; z-index: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(80% 60% at 25% 50%, rgba(8,8,10,0.55), transparent 70%),
    linear-gradient(180deg, rgba(8,8,10,0.55) 0%, transparent 30%, rgba(8,8,10,0.6) 75%, var(--black) 100%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-tag { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.6rem);
  text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: heroUp 1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes heroUp { to { transform: none; } }
.hero p.sub { margin-top: 24px; max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.22rem); color: var(--silver); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-meta { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--gold-bright); }
.hero-meta .stat .l { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--faint); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero-scroll .mouse { width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 14px; position: relative; }
.hero-scroll .mouse::after { content:""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0; transform: translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform: translate(-50%,12px)} }

/* HUD corners overlay */
.hud-corner { position: absolute; width: 60px; height: 60px; z-index: 3; border: 1px solid rgba(216,179,92,0.3); pointer-events: none; }
.hud-corner.tl { top: 100px; left: 24px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 100px; right: 24px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

/* ---------- Marquee / trust ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-dim); white-space: nowrap; display: flex; align-items: center; gap: 14px; }
.marquee-track span::before { content: "◆"; color: var(--gold); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Swipe hint (mobile rails) ---------- */
.swipe-hint { display: none; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.svc {
  position: relative; padding: 34px 28px 30px; background: var(--ink);
  transition: background .4s; overflow: hidden; min-height: 230px; display: flex; flex-direction: column;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--grad-gold-soft); opacity: 0; transition: opacity .4s; }
.svc:hover { background: var(--charcoal); }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; z-index: 1; }
.svc .num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.2em; }
.svc .ico { width: 44px; height: 44px; margin: 16px 0 18px; color: var(--gold); }
.svc h3 { font-size: 1.22rem; margin-bottom: 10px; text-transform: none; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.svc .arr { margin-top: auto; padding-top: 16px; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: .35s; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; }
.svc:hover .arr { opacity: 1; transform: none; }

/* ---------- Flight Mode feature ---------- */
.flightmode { position: relative; overflow: hidden; }
.fm-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); min-height: 560px; background: var(--ink); }
.fm-canvas { position: absolute; inset: 0; }
.fm-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 4vw, 44px); pointer-events: none; }
.fm-overlay .fm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.fm-hud { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.fm-hud .row { display: flex; gap: 8px; opacity: 0.85; }
.fm-center { text-align: center; max-width: 620px; margin-inline: auto; pointer-events: auto; }
.fm-center h2 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
.fm-center p { color: var(--silver); margin: 14px 0 24px; }
.fm-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fm-keys { display: flex; gap: 8px; pointer-events: auto; }
.kbd { font-family: var(--font-mono); font-size: 0.72rem; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,0.03); color: var(--silver); }
.fm-locations { display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; }
.fm-loc { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--faint); transition: .3s; }
.fm-loc.active, .fm-loc:hover { color: var(--gold); border-color: var(--gold); background: rgba(216,179,92,0.07); }

/* ---------- Globe ---------- */
.globe-wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.globe-stage { position: relative; aspect-ratio: 1/1; max-width: 560px; margin-inline: auto; width: 100%; }
.globe-stage canvas { width: 100%; height: 100%; touch-action: pan-y; }
.globe-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.globe-ring.r2 { inset: -22px; border-color: rgba(216,179,92,0.08); }
.globe-ring.r3 { inset: 8%; border-style: dashed; border-color: rgba(216,179,92,0.12); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.globe-readout { display: flex; flex-direction: column; gap: 18px; }
.geo-stat { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass-2); }
.geo-stat .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.geo-stat .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--gold-bright); }
.geo-list { display: flex; flex-direction: column; gap: 2px; }
.geo-pin { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius-sm); transition: background .3s; cursor: pointer; }
.geo-pin:hover, .geo-pin.active { background: rgba(216,179,92,0.08); }
.geo-pin .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216,179,92,0.18); flex: none; }
.geo-pin .city { font-weight: 600; font-size: 0.95rem; }
.geo-pin .cnt { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); }

/* ---------- Mission Archive ---------- */
.missions-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.mission {
  position: relative; border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--charcoal), var(--ink)); min-height: 400px; cursor: pointer;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
  display: flex; flex-direction: column;
}
.mission:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.mission-visual { position: relative; height: 190px; overflow: hidden; background-size: cover; background-position: center; }
.mission-visual canvas { width:100%; height:100%; }
.mission-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--charcoal)); }
.mission-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.mission-status { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.mission-status .led { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.mission-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mission-body h3 { font-size: 1.18rem; text-transform: none; letter-spacing: -0.01em; }
.mission-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: auto; }
.mspec .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.mspec .v { font-size: 0.86rem; color: var(--silver); font-weight: 500; }
.mission-open { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding-top: 6px; border-top: 1px solid var(--line); }

/* Mission modal */
.modal-root { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal-root.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(4,3,2,0.84); backdrop-filter: blur(8px); animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(960px, 92vw); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(160deg, var(--charcoal), var(--ink)); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  animation: pop .5s var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%,-46%) scale(.97); } }
.modal-hero { height: 280px; position: relative; overflow: hidden; }
.modal-hero canvas { width: 100%; height: 100%; }
.modal-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, var(--charcoal)); }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0,0,0,0.4); display: grid; place-items: center; color: var(--white); transition: .3s; }
.modal-close:hover { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.modal-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: none; margin-bottom: 8px; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.modal-grid .cell { background: var(--charcoal); padding: 16px 18px; }
.modal-grid .cell .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.modal-grid .cell .v { margin-top: 6px; font-family: var(--font-display); font-weight: 700; }
.modal-section h4 { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.modal-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.modal-gallery .shot { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; }
.modal-gallery .shot canvas { width: 100%; height: 100%; }

/* ---------- Fleet Hangar ---------- */
.fleet-stage { perspective: 1600px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.drone-card {
  position: relative; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 50% 0%, var(--charcoal-2), var(--ink)); padding: 28px;
  overflow: hidden; transform-style: preserve-3d; transition: transform .3s var(--ease-out), box-shadow .4s, border-color .4s;
}
.drone-card:hover { border-color: var(--line-strong); box-shadow: 0 30px 70px rgba(0,0,0,0.6); }
.drone-stage { height: 200px; position: relative; display: grid; place-items: center; }
.drone-stage canvas { width: 100%; height: 100%; }
.drone-glow { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 60%; height: 24px; background: radial-gradient(closest-side, rgba(216,179,92,0.4), transparent); filter: blur(8px); }
.drone-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin-top: 8px; }
.drone-class { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.drone-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.drone-spec { border-top: 1px solid var(--line); padding-top: 10px; }
.drone-spec .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.drone-spec .v { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.drone-use { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Showreel ---------- */
.reel { position: relative; }
.reel-main {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--ink); display: grid; place-items: center;
}
.reel-main canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-play { position: relative; z-index: 2; width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(216,179,92,0.14); backdrop-filter: blur(10px); display: grid; place-items: center; transition: .4s; }
.reel-play:hover { background: var(--gold); transform: scale(1.06); }
.reel-play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.reel-play:hover svg { color: #1a1206; }
.reel-meta { position: absolute; z-index: 2; bottom: 22px; left: 24px; }
.reel-meta .t { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; }
.reel-meta .d { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); }
.reel-cats { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.reel-cat { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--faint); transition: .3s; }
.reel-cat.active, .reel-cat:hover { color: var(--gold); border-color: var(--gold); background: rgba(216,179,92,0.06); }

/* ---------- Command Center ---------- */
.command { background: linear-gradient(180deg, #0c0a06, var(--black)); border-block: 1px solid var(--line); }
.cc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cc-panel { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.cc-panel::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity:.4; }
.cc-panel h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cc-panel h4 .led { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s infinite; }
.cc-span-3 { grid-column: span 3; } .cc-span-4 { grid-column: span 4; } .cc-span-5 { grid-column: span 5; } .cc-span-6 { grid-column: span 6; } .cc-span-7 { grid-column: span 7; } .cc-span-8 { grid-column: span 8; }
.cc-big { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; line-height: 1; color: var(--gold-bright); }
.cc-sub { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.1em; margin-top: 6px; text-transform: uppercase; }
.cc-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.cc-row:last-child { border: 0; }
.cc-row .mono { color: var(--silver); }
.cc-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 8px; }
.cc-bar span { display: block; height: 100%; background: var(--grad-gold); border-radius: 4px; transition: width 1.2s var(--ease-out); }
.weather-chip { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weather-chip:last-child { border:0; }
.weather-chip .loc { font-size: 0.86rem; }
.weather-chip .cond { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); }
.cc-radar { aspect-ratio: 1/1; max-height: 220px; margin-inline: auto; }

/* ---------- Estimator ---------- */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.est-form { display: flex; flex-direction: column; gap: 22px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.84rem; padding: 9px 15px; border: 1px solid var(--line); border-radius: 100px; color: var(--silver); transition: .25s; cursor: pointer; }
.chip:hover { border-color: var(--line-strong); }
.chip.sel { background: var(--grad-gold); color: #1a1206; border-color: transparent; font-weight: 600; }
.range-wrap { display: flex; align-items: center; gap: 16px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); flex: 1; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(216,179,92,0.2); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--gold); cursor: pointer; }
.range-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; min-width: 80px; text-align: right; color: var(--gold-bright); }
.est-result { background: linear-gradient(160deg, var(--charcoal-2), var(--ink)); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: clamp(24px,4vw,40px); display: flex; flex-direction: column; }
.est-quote { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; margin: 6px 0; color: var(--gold-bright); }
.est-line { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.est-line .muted { color: var(--faint); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.est-pkg { margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }

/* ---------- Booking (multi-step) ---------- */
.booking { max-width: 820px; margin-inline: auto; }
.steps-bar { display: flex; gap: 6px; margin-bottom: 36px; }
.step-pip { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.step-pip span { position: absolute; inset: 0; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.step-pip.done span, .step-pip.active span { transform: scaleX(1); }
.book-step { display: none; }
.book-step.active { display: block; animation: stepIn .5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
.book-step h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: none; margin-bottom: 8px; }
.book-step > p.lead { color: var(--muted); margin-bottom: 28px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.opt {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; cursor: pointer; transition: .3s; position: relative;
  background: var(--glass-2);
}
.opt:hover { border-color: var(--line-strong); }
.opt.sel { border-color: var(--gold); background: rgba(216,179,92,0.09); box-shadow: var(--glow-gold); }
.opt .ot { font-weight: 600; margin-bottom: 4px; }
.opt .od { font-size: 0.8rem; color: var(--faint); }
.inp, select.inp, textarea.inp {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--white); font-family: var(--font-sans); font-size: 0.95rem; transition: .3s;
}
.inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,179,92,0.14); }
textarea.inp { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dropzone { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--faint); transition: .3s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(216,179,92,0.05); color: var(--silver); }
.book-nav { display: flex; justify-content: space-between; margin-top: 34px; gap: 12px; }
.book-success { text-align: center; padding: 40px 0; }
.book-success .check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; border: 2px solid var(--gold); box-shadow: var(--glow-gold); color: var(--gold); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.testi { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.testi .stars { color: var(--gold); letter-spacing: 3px; font-size: 0.9rem; }
.testi blockquote { font-size: 1.04rem; line-height: 1.6; color: var(--white); }
.testi .by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #1a1206; flex: none; }
.testi .by .nm { font-weight: 600; font-size: 0.92rem; }
.testi .by .rl { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.08em; }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post { border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; transition: .4s; display: flex; flex-direction: column; background: var(--ink); }
.post:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.post-cover { height: 180px; position: relative; overflow: hidden; }
.post-cover canvas { width: 100%; height: 100%; }
.post-cat { position: absolute; top: 14px; left: 14px; z-index: 2; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-body h3 { font-size: 1.15rem; text-transform: none; letter-spacing: -0.01em; }
.post-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.08em; margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(50px, 9vw, 110px) clamp(24px,5vw,60px); border: 1px solid var(--glass-border); background: radial-gradient(120% 130% at 50% 0%, #211808, #0a0906); }
.cta-band h2 { font-size: clamp(2rem, 6vw, 4.4rem); text-transform: uppercase; }
.cta-band p { color: var(--silver); max-width: 50ch; margin: 18px auto 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 64px 36px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-links a { display: block; color: var(--muted); padding: 6px 0; font-size: 0.9rem; transition: color .3s; }
.footer-links a:hover { color: var(--white); }
.footer-about p { color: var(--muted); max-width: 38ch; margin: 16px 0; font-size: 0.92rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: .3s; }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Section labels ---------- */
.sec-index { position: absolute; top: clamp(40px,7vh,90px); right: var(--gutter); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--faint); }

/* ---------- Mobile sticky action bar (conversion + less scrolling) ---------- */
.m-actionbar { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .globe-wrap { grid-template-columns: 1fr; }
  .estimator { grid-template-columns: 1fr; }
  .cc-span-3,.cc-span-5,.cc-span-7,.cc-span-8 { grid-column: span 6; }
  .cc-span-4,.cc-span-6 { grid-column: span 6; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---- Phone: minimise vertical scrolling with snap-rails & tighter rhythm ---- */
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .section-pad { padding-block: clamp(48px, 8vh, 72px); }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .section-head p { font-size: 0.98rem; }
  .hero { min-height: 90vh; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .hero p.sub { margin-top: 18px; font-size: 1rem; }
  .hero-actions { margin-top: 26px; gap: 12px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 14px 18px; }
  .hero-meta { gap: 18px 28px; margin-top: 34px; }
  .hero-meta .stat { flex: 1 1 40%; }
  .hud-corner, .sec-index, .hero-scroll { display: none; }

  /* Convert dense stacked grids into single-screen horizontal rails */
  .services-grid,
  .missions-rail,
  .fleet-grid,
  .testi-grid,
  .journal-grid {
    display: flex; gap: 14px; background: none; border: 0; border-radius: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 0 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar,
  .missions-rail::-webkit-scrollbar,
  .fleet-grid::-webkit-scrollbar,
  .testi-grid::-webkit-scrollbar,
  .journal-grid::-webkit-scrollbar { display: none; }

  .services-grid .svc,
  .missions-rail .mission,
  .fleet-grid .drone-card,
  .testi-grid .testi,
  .journal-grid .post {
    flex: 0 0 82%; scroll-snap-align: center; border-radius: var(--radius);
    border: 1px solid var(--glass-border); min-height: auto;
  }
  .services-grid .svc { background: var(--charcoal); }
  .mission { min-height: 360px; }

  /* swipe hint shown above rails */
  .swipe-hint { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
  .swipe-hint::after { content: "→"; animation: nudge 1.4s var(--ease-in-out) infinite; color: var(--gold); }
  @keyframes nudge { 0%,100% { transform: translateX(0) } 50% { transform: translateX(5px) } }

  /* Command center compact */
  .cc-grid { gap: 10px; }
  .cc-span-3,.cc-span-4,.cc-span-5,.cc-span-6,.cc-span-7,.cc-span-8 { grid-column: span 6; }
  .cc-panel { padding: 16px; }
  .cc-big { font-size: 1.7rem; }
  .fm-stage { min-height: 420px; }
  .fm-center h2 { font-size: 1.7rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: 1 / -1; }

  /* sticky bottom action bar */
  .m-actionbar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900;
    padding: 9px; border-radius: 100px;
    background: rgba(12,11,9,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-strong); box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(120%); transition: transform .5s var(--ease-out);
  }
  .m-actionbar.show { transform: none; }
  .m-actionbar .btn { flex: 1; padding: 13px 14px; font-size: 0.74rem; }
  body.has-actionbar .footer { padding-bottom: 90px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 0.82rem; }
  .brand-name small { display: none; }
  .hero-meta .stat .n { font-size: 1.5rem; }
}

/* ============================================================
   Vibrancy polish (richer, less static)
   ============================================================ */
.svc:hover { box-shadow: inset 0 0 0 1px rgba(240,198,79,0.18), 0 20px 50px rgba(0,0,0,0.5); }
.mission:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,178,77,0.18); }
.drone-card:hover { box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 36px rgba(255,178,77,0.20); }
.post:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 26px rgba(255,178,77,0.16); }
.glass:hover, .testi:hover { border-color: var(--line-strong); }
.hero h1 .gold-text { filter: drop-shadow(0 0 24px rgba(255,178,77,0.30)); }
.brand-name b { text-shadow: 0 0 14px rgba(255,178,77,0.35); }
.tag { background: var(--grad-gold-soft); }
.eyebrow { color: var(--amber); }
/* animated sheen on primary buttons */
.btn-primary { background-size: 160% 160%; animation: goldFlow 7s ease infinite; }
@keyframes goldFlow { 0%,100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } }

/* service pillar tags (client copy) */
.svc { min-height: 300px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc-tags span {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(216,179,92,0.05);
}
