/* =============================================
   Wary Secure — Parchment Edition (Demo palette)
   Cream + ink + warm gold. Sections preserved, videos removed.
   ============================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design tokens (Dark luxury: navy + gold) ---------- */
:root {
    --bg: #0D2342;            /* deep navy — primary surface tone */
    --bg-deeper: #08152D;     /* darker navy for gradient bottom + footer */
    --surface: #142A4F;       /* card surface — slightly lighter than bg */
    --ink: #FFFFFF;           /* primary text */
    --ink-soft: #E5E1D8;      /* slightly warm white for body */
    --muted: #9CA3B4;         /* cool-warm muted gray */
    --gold: #C49A47;
    --gold-soft: #D9B670;
    --gold-deep: #A77E2E;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
}

/* =============================================
   AI-Minimal Hero — Pure typography, centered
   Big editorial serif with line-by-line mask reveal
   ============================================= */
.hero-typo {
    background: var(--bg);
    color: var(--ink);
    padding: 140px 0 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;   /* clip decorative blobs so they don't trigger horizontal scroll on mobile */
}
@media (max-width: 880px) {
    .hero-typo { padding: 120px 0 80px; min-height: 90vh; }
}

.hero-typo-inner {
    position: relative;
    z-index: 1;
}

.hero-typo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 36px;
}
.hero-typo-eyebrow::before,
.hero-typo-eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

/* Massive editorial headline — pure typography is the hero */
.hero-typo-h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(56px, 11vw, 168px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0;
}
.hero-typo-h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}

/* Each line is a mask container so the inner text reveals up cleanly */
.hero-typo-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    padding-top: 0.02em;
}
.hero-typo-word {
    display: inline-block;
}

/* Hairline gold rule below the headline — draws in as the heading completes */
.hero-typo-rule {
    width: 56px;
    height: 1.5px;
    background: var(--gold);
    margin: 44px auto 32px;
    transform-origin: center;
    transform: scaleX(0);
}
.hero-typo-rule.is-drawn {
    transform: scaleX(1);
    transition: transform 1s var(--ease);
}

.hero-typo-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(15px, 1.15vw, 19px);
    line-height: 1.65;
    color: var(--muted);
    max-width: 58ch;
    margin: 0 auto 44px;
}

.hero-typo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-typo-eyebrow { font-size: 11px; margin-bottom: 24px; }
    .hero-typo-eyebrow::before, .hero-typo-eyebrow::after { width: 20px; }
    .hero-typo-rule { margin: 32px auto 24px; }
    .hero-typo-actions .btn-min { padding: 14px 22px; font-size: 13.5px; }
}

/* ====== Legacy .hero-min-* selectors retained as a fallback below ====== */

/* Minimal pill buttons — no glow, no shimmer, no animation. Just confidence. */
.btn-min {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}
.btn-min-primary {
    background: var(--gold);
    color: #0A1A3D;             /* dark navy for high contrast on gold */
    box-shadow:
        0 4px 14px rgba(196, 154, 71, 0.28),
        0 1px 2px rgba(0, 0, 0, 0.20);
}
.btn-min-primary:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(196, 154, 71, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.25);
}
.btn-min-primary svg { transition: transform 0.3s var(--ease); }
.btn-min-primary:hover svg { transform: translateX(4px); }

.btn-min-ghost {
    background: transparent;
    color: var(--ink);                                     /* white in dark theme */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);  /* white-tinted border */
}
.btn-min-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(196, 154, 71, 0.45);
    color: var(--gold);
    transform: translateY(-2px);
}

/* RIGHT column — single full-bleed image, no frame, no glow */
.hero-min-right {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 720px;
}
@media (max-width: 980px) {
    .hero-min-right { aspect-ratio: 4 / 5; max-height: 480px; }
}

.hero-min-image-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 60%, rgba(196, 154, 71, 0.10), transparent 60%),
        linear-gradient(180deg, var(--bg-deeper) 0%, var(--bg) 100%);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px -20px rgba(10, 10, 10, 0.25),
                0 8px 24px rgba(10, 10, 10, 0.08);
}
.hero-min-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    padding: 32px;
    filter: drop-shadow(0 24px 36px rgba(10, 10, 10, 0.30));
}

@media (max-width: 640px) {
    .hero-min-image-frame { border-radius: 18px; }
    .hero-min-image { padding: 20px; }
}

/* ---------- Services overview section ---------- */
/* Now wears the gold-radial gradient (was the body bg) — makes the services
   section the "feature" with the richer atmosphere. */
.services-section {
    background:
        radial-gradient(1200px 900px at 82% 0%, rgba(196, 154, 71, 0.18), transparent 55%),
        radial-gradient(900px 700px at 5% 100%, rgba(196, 154, 71, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deeper) 100%);
    position: relative;
}

.services-head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 56px;
}
@media (max-width: 880px) {
    .services-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

.services-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.services-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.services-heading {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.05;
    margin: 18px 0 0;
}
.services-heading em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.services-sub {
    font-size: clamp(15px, 1.1vw, 17px);
    color: var(--muted);
    max-width: 48ch;
    line-height: 1.65;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 780px) {
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
}

.service-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(13, 35, 66, 0.06);
    transition: transform 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                border-color 0.4s var(--ease);
}
.service-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 154, 71, 0.45);
    box-shadow: 0 28px 60px -18px rgba(13, 35, 66, 0.22),
                0 6px 14px rgba(13, 35, 66, 0.08);
}

.service-tile-media {
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 50% 60%, rgba(196, 154, 71, 0.10), transparent 60%),
        linear-gradient(135deg, var(--bg-deeper) 0%, var(--bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}
.service-tile-media img {
    max-width: 92%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(10, 10, 10, 0.22));
    transition: transform 0.55s var(--ease);
    will-change: transform;
}
/* Portrait subjects (like the K9 handler cut-out) need different sizing
   than landscape product shots — let them push closer to the frame edges. */
.service-tile-media-portrait {
    padding: 0;
    align-items: flex-end;
}
.service-tile-media-portrait img {
    max-width: 78%;
    max-height: 108%;     /* allow slight overflow so the figure feels grounded */
    margin-bottom: -2%;
    filter: drop-shadow(0 20px 30px rgba(10, 10, 10, 0.28));
}
.service-tile:hover .service-tile-media img {
    transform: scale(1.04);
}
.service-tile:hover .service-tile-media-portrait img {
    transform: scale(1.04) translateY(-4px);
}

.service-tile-body {
    padding: 28px 30px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-tile-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.service-tile-body h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 26px);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.2;
}

.service-tile-body p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 18px;
}

.service-tile-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.service-tile-points li {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}
.service-tile-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 1px;
    background: var(--gold);
}

.service-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.service-tile-cta > span {
    font-size: 17px;
    transition: transform 0.3s var(--ease);
    line-height: 1;
}
.service-tile:hover .service-tile-cta > span {
    transform: translateX(5px);
}

@media (max-width: 640px) {
    .service-tile-media { aspect-ratio: 16 / 9; padding: 22px; }
    .service-tile-media img { max-width: 55%; }
    .service-tile-body { padding: 24px 22px 26px; }
}

/* =============================================
   Services Zigzag — Floating image + text-with-number alternating
   Image on one side (no card / no bg / floats free)
   Text + number marker + title + description + button on the other
   ============================================= */
.services-zigzag {
    display: flex;
    flex-direction: column;
    gap: 100px;
    position: relative;
}

.services-zig-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

/* ----- Image column — pure floating object, no holder ----- */
.service-zig-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
/* Subtle gold halo behind the image — gives it presence on navy without being a card */
.service-zig-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(196, 154, 71, 0.15) 0%,
        rgba(196, 154, 71, 0.05) 40%,
        transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.service-zig-image img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 540px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Deep drop shadow grounds the floating object on the navy bg */
    filter:
        drop-shadow(0 30px 40px rgba(0, 0, 0, 0.50))
        drop-shadow(0 0 80px rgba(196, 154, 71, 0.15));
    transition: transform 0.6s var(--ease);
}

/* Compact variant — used for the CCTV camera image (which is dense/detailed
   and was reading as visually larger than the portrait K9 photo) */
.service-zig-image-compact img {
    max-height: 380px;
    max-width: 75%;
}
.services-zig-row:hover .service-zig-image img {
    transform: translateY(-6px) scale(1.02);
}

/* ----- Text column — number marker + content + button ----- */
.service-zig-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 480px;
}

/* Number marker — smaller than the standalone one, sits at top of content */
.service-zig-marker {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 154, 71, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 28px;
    background: rgba(20, 42, 79, 0.4);
}
.service-zig-marker::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px dashed rgba(196, 154, 71, 0.20);
    border-radius: 50%;
}
.service-zig-marker span {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--gold);
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.service-zig-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.service-zig-content h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(30px, 3.2vw, 44px);
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.1;
}

.service-zig-content p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 0 26px;
    max-width: 46ch;
}

.service-zig-points {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-zig-points li {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    padding-left: 26px;
    position: relative;
}
.service-zig-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 16px;
    height: 1px;
    background: var(--gold);
}

/* Proper gold pill button — primary action */
.service-zig-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: var(--gold);
    color: #0D2342;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 4px 14px rgba(196, 154, 71, 0.25);
}
.service-zig-btn:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(196, 154, 71, 0.40);
}
.service-zig-btn svg { transition: transform 0.3s var(--ease); }
.service-zig-btn:hover svg { transform: translateX(4px); }

/* ---------- Mobile: stack image first, text below ---------- */
@media (max-width: 880px) {
    .services-zigzag { gap: 72px; }
    .services-zig-row,
    .services-zig-row-reverse {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    /* Always image first on mobile regardless of row direction */
    .services-zig-row-reverse .service-zig-image { order: 1; }
    .services-zig-row-reverse .service-zig-content { order: 2; }
    .service-zig-image { min-height: 320px; }
    .service-zig-image img { max-height: 360px; }
    .service-zig-content { max-width: 100%; }
    .service-zig-marker {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;
    }
    .service-zig-marker span { font-size: 30px; }
}
@media (max-width: 480px) {
    .service-zig-image { min-height: 260px; }
    .service-zig-image img { max-height: 280px; }
    .service-zig-content p { font-size: 15px; }
}

/* ---------- Global theme overlay (solid navy) ---------- */
body {
    background: var(--bg) !important;
    color: var(--ink) !important;
}

/* Ensure the contact section reads as navy (its `bg-dark-bg` utility resolves
   to transparent below; this forces a solid navy fallback) */
#contact { background-color: var(--bg); }

/* Tailwind utility-class colors → tokenised (most rules can stay as-is now
   because the *token values* changed, but a few utility classes were
   force-mapped during the parchment phase and need re-flipping). */

/* Body text colors stay white / muted */
.text-white { color: var(--ink) !important; }
.text-gray-100, .text-gray-200, .text-gray-300 { color: var(--ink-soft) !important; }
.text-gray-400, .text-gray-500, .text-gray-600 { color: var(--muted) !important; }

.text-primary-gold { color: var(--gold) !important; }

/* Page-bg utilities point to navy tones */
.bg-dark-bg       { background-color: transparent !important; }   /* let body gradient show through */
.bg-dark-deeper   { background-color: var(--bg-deeper) !important; }
.bg-secondary-navy { background-color: var(--bg-deeper) !important; }

/* Translucent navy surfaces — for cards / panels on glass-style sections */
.bg-secondary-navy\/30,
.bg-secondary-navy\/40,
.bg-secondary-navy\/50 { background-color: rgba(20, 42, 79, 0.55) !important; }

/* Gold borders + white dividers */
[class*="border-primary-gold"] { border-color: rgba(196, 154, 71, 0.35) !important; }
.border-white\/5,
.border-white\/10,
.border-white\/15,
.border-white\/20 { border-color: var(--line) !important; }

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; position: relative; }
img { max-width: 100%; height: auto; display: block; }

a, button, input, textarea, select {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* When GSAP is active, disable CSS-driven reveal transitions
   so GSAP has clean ownership of opacity/transform. */
body.gsap-loaded .reveal,
body.gsap-loaded .hero-content > *,
body.gsap-loaded .service-card,
body.gsap-loaded .proof-card,
body.gsap-loaded .faq-item {
    transition: none;
}

/* ---------- Floating Glass Navbar ---------- */
.navbar-glass {
    position: relative;
    border-radius: 18px;
    /* Dark frosted glass over navy backdrop */
    background: linear-gradient(180deg,
        rgba(20, 42, 79, 0.55) 0%,
        rgba(13, 35, 66, 0.45) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 14px 40px -12px rgba(0, 0, 0, 0.55),
        0 4px 12px -4px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.10),
        inset 0 0 0 1px rgba(196, 154, 71, 0.04);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Subtle gold reflection on top edge */
.navbar-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 154, 71, 0.45), transparent);
    border-radius: 1px;
    pointer-events: none;
}

#mainNav.scrolled .navbar-glass {
    background: linear-gradient(180deg,
        rgba(20, 42, 79, 0.75) 0%,
        rgba(13, 35, 66, 0.65) 100%);
    border-color: rgba(196, 154, 71, 0.18);
    box-shadow:
        0 18px 50px -12px rgba(0, 0, 0, 0.7),
        0 6px 18px -6px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(196, 154, 71, 0.08);
}

/* Compact the floating bar slightly when scrolled */
#mainNav.scrolled {
    top: 8px;
}
@media (min-width: 768px) {
    #mainNav.scrolled { top: 10px; }
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar-glass {
        background: rgba(0, 19, 46, 0.94);
    }
    #mainNav.scrolled .navbar-glass {
        background: rgba(0, 19, 46, 0.97);
    }
}
.nav-link { position: relative; padding: 4px 0; color: rgba(255, 255, 255, 0.78) !important; }
.nav-link:hover { color: var(--gold) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold) !important; }

/* ============================================
   Netflix-style Intro Loader
   ============================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.intro-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}
.intro-skip {
    position: absolute;
    top: max(1.25rem, env(safe-area-inset-top));
    right: max(1.25rem, env(safe-area-inset-right));
    background: rgba(0, 11, 30, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 194, 117, 0.35);
    color: #E5C275;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.intro-skip:hover {
    background: #E5C275;
    color: #00132E;
    transform: translateX(-2px);
}
body.intro-active,
body.flight-active { overflow: hidden; }

/* Navbar logo: hidden until the hero logo "lands" on top of it */
#navLogo {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
body.logo-arrived #navLogo {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Hero logo flight to navbar (FLIP-style morph) ---------- */
/* Higher-specificity selectors so we override the cascade reveal transition */
.hero-content .hero-logo-wrap.is-flying {
    transition: transform 0.85s cubic-bezier(0.72, 0, 0.28, 1);
    z-index: 200;
    pointer-events: none;
}
.hero-content .hero-logo-wrap.is-flying .hero-logo-halo {
    /* Force-stop the breathing pulse — it was overriding the opacity fade */
    animation: none !important;
    opacity: 0;
    transition: opacity 0.35s ease;
}
/* Soften the logo's drop shadow during flight so it doesn't dominate the shrunken element */
.hero-content .hero-logo-wrap.is-flying .hero-logo {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
    transition: filter 0.5s ease;
}
.hero-content .hero-logo-wrap.is-gone {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* ============================================
   Hero — Centered, Cinematic, Dark Luxury
   ============================================ */
.hero-content {
    /* All children start hidden; reveal cascades after intro fades */
}
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-content.is-visible > *           { opacity: 1; transform: translateY(0); }
.hero-content.is-visible .hero-logo-wrap { transition-delay: 0.10s; }
.hero-content.is-visible .hero-h1       { transition-delay: 0.30s; }
.hero-content.is-visible .hero-sub      { transition-delay: 0.55s; }
.hero-content.is-visible .hero-cta      { transition-delay: 0.75s; }
.hero-content.is-visible .hero-scroll-hint { transition-delay: 1.0s; }

/* Logo */
.hero-logo-wrap {
    position: relative;
    width: clamp(96px, 12vw, 140px);
    margin: 0 auto 2rem;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 30px rgba(229, 194, 117, 0.25));
}
.hero-logo-halo {
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle,
        rgba(229, 194, 117, 0.30) 0%,
        rgba(229, 194, 117, 0.08) 35%,
        transparent 65%);
    filter: blur(22px);
    animation: halo-pulse 5s ease-in-out infinite;
    z-index: 1;
}
@keyframes halo-pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50%      { opacity: 1;   transform: scale(1.10); }
}

/* Heading */
.hero-h1 {
    font-size: clamp(2.4rem, 5.5vw + 0.5rem, 5.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}
.hero-h1-line {
    display: block;
}
.hero-h1-gold {
    background: linear-gradient(135deg, #E5C275 0%, #F1D89A 50%, #E5C275 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: gold-shimmer 6s ease-in-out infinite;
}
@keyframes gold-shimmer {
    0%, 100% { background-position:   0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Subheading */
.hero-sub {
    font-size: clamp(1rem, 1.2vw + 0.55rem, 1.4rem);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    letter-spacing: 0.015em;
    margin-bottom: 2.75rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* CTA — gold pill with continuous luxury glow */
.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 2.6rem;
    background: linear-gradient(135deg, #E5C275 0%, #F4DCA0 50%, #E5C275 100%);
    background-size: 200% auto;
    color: #00132E;
    font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(229, 194, 117, 0.45),
        0 18px 45px -10px rgba(229, 194, 117, 0.55),
        0 0 36px rgba(229, 194, 117, 0.35);
    animation: cta-gold-glow 3.2s ease-in-out infinite;
    transition: background-position 0.6s ease,
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
    will-change: transform, box-shadow;
    overflow: hidden;
    z-index: 1;
}
/* Soft inner shine sweep */
.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.hero-cta:hover::before { transform: translateX(100%); }

@keyframes cta-gold-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(229, 194, 117, 0.45),
            0 18px 45px -10px rgba(229, 194, 117, 0.50),
            0 0 30px rgba(229, 194, 117, 0.30);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(229, 194, 117, 0.55),
            0 22px 55px -8px rgba(229, 194, 117, 0.70),
            0 0 50px rgba(229, 194, 117, 0.50);
    }
}
.hero-cta i {
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-cta:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
}
.hero-cta:hover i { transform: translateX(5px); }

/* Scroll hint */
.hero-scroll-hint {
    margin-top: 4rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(229, 194, 117, 0.55);
}
.hero-scroll-hint i {
    animation: bounce 2s ease-in-out infinite;
}

/* ---------- Hero mobile spacing ---------- */
@media (max-width: 640px) {
    .hero-content { padding-top: 5rem; padding-bottom: 5rem; }
    .hero-logo-wrap { margin-bottom: 1.5rem; }
    .hero-sub { margin-bottom: 2.25rem; }
    .hero-cta { padding: 1rem 2rem; }
    .hero-scroll-hint { margin-top: 2.5rem; }
}

/* ---------- Hero parchment backdrop (demo-style) ---------- */
/* Cream base + warm gold radial top-right + faint ink radial bottom-left */
.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(196, 154, 71, 0.18), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(13, 35, 66, 0.07), transparent 65%),
        var(--bg);
}

/* Soft grid mask (only visible in the central focus area) */
.hero-grid-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(13, 35, 66, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 35, 66, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* Drifting gradient blobs — subtle ambient gold motion above the video */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
    mix-blend-mode: screen;
}
.hero-blob-1 {
    width: 420px; height: 420px;
    top: -120px; left: -120px;
    background: rgba(229, 194, 117, 0.16);
    animation: blob-drift-1 22s ease-in-out infinite alternate;
}
.hero-blob-2 {
    width: 520px; height: 520px;
    bottom: -180px; right: -120px;
    background: rgba(168, 132, 59, 0.14);
    animation: blob-drift-2 28s ease-in-out infinite alternate;
}
.hero-blob-3 {
    width: 380px; height: 380px;
    top: 35%; left: 45%;
    background: rgba(229, 194, 117, 0.08);
    animation: blob-drift-3 32s ease-in-out infinite alternate;
}
@keyframes blob-drift-1 {
    0%   { transform: translate(0, 0)       scale(1); }
    100% { transform: translate(70px, 50px)  scale(1.15); }
}
@keyframes blob-drift-2 {
    0%   { transform: translate(0, 0)         scale(1); }
    100% { transform: translate(-90px, -50px) scale(1.10); }
}
@keyframes blob-drift-3 {
    0%   { transform: translate(0, 0)         scale(1); }
    100% { transform: translate(-60px, 40px)  scale(1.20); }
}

/* Floating gold particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}
.hero-particles span {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: #E5C275;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(229, 194, 117, 0.7),
                0 0 20px rgba(229, 194, 117, 0.3);
    opacity: 0;
    animation: particle-rise linear infinite;
}
.hero-particles span:nth-child(1) { left:  8%; animation-duration: 14s; animation-delay:  0s; }
.hero-particles span:nth-child(2) { left: 22%; animation-duration: 18s; animation-delay:  3s; width: 2px; height: 2px; }
.hero-particles span:nth-child(3) { left: 38%; animation-duration: 12s; animation-delay:  6s; }
.hero-particles span:nth-child(4) { left: 55%; animation-duration: 16s; animation-delay:  1.5s; width: 4px; height: 4px; }
.hero-particles span:nth-child(5) { left: 68%; animation-duration: 11s; animation-delay:  5s; }
.hero-particles span:nth-child(6) { left: 82%; animation-duration: 19s; animation-delay:  2s; width: 2px; height: 2px; }
.hero-particles span:nth-child(7) { left: 92%; animation-duration: 13s; animation-delay:  7s; }
.hero-particles span:nth-child(8) { left:  4%; animation-duration: 17s; animation-delay:  4s; width: 2px; height: 2px; }
@keyframes particle-rise {
    0%   { transform: translateY(0)        scale(0.6); opacity: 0; }
    8%   { opacity: 0.9; }
    92%  { opacity: 0.9; }
    100% { transform: translateY(-100vh)   scale(1.2); opacity: 0; }
}


/* ---------- Mobile tuning ---------- */
@media (max-width: 1023px) {
    .hero-blob { filter: blur(50px); }
    .hero-blob-1 { width: 280px; height: 280px; }
    .hero-blob-2 { width: 320px; height: 320px; }
    .hero-blob-3 { width: 240px; height: 240px; }
    .hero-radar { max-width: 360px; max-height: 360px; }
    .hero-pulse-ring { max-width: 240px; max-height: 240px; }
}
@media (max-width: 640px) {
    /* Drop the heaviest particle effect on small phones for perf */
    .hero-particles span:nth-child(n+4) { display: none; }
    .hero-blob { filter: blur(28px); }
}

/* ---------- Real-device GPU rescue (any touch-primary device) ---------- */
/* backdrop-filter + heavy blur trash Android GPU performance. Swap the
   glassmorphic navbar for a solid translucent background on phones, and
   drop the most expensive blob filter further. */
@media (max-width: 768px), (hover: none) {
    .navbar-glass {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(8, 21, 45, 0.92);
    }
    #mainNav.scrolled .navbar-glass {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(8, 21, 45, 0.96);
    }
    /* GPU hint so the remaining animated layers stay on the compositor */
    .hero-blob, .hero-typo-word, .proof-card { transform: translateZ(0); }
}

/* CCTV scanline sweep — one-shot on load */
.scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(229, 194, 117, 0.15) 15%,
        rgba(229, 194, 117, 0.75) 50%,
        rgba(229, 194, 117, 0.15) 85%,
        transparent 100%);
    box-shadow: 0 0 22px rgba(229, 194, 117, 0.45),
                0 0 40px rgba(229, 194, 117, 0.18);
    opacity: 0;
    animation: scanline-sweep 1.9s cubic-bezier(0.45, 0, 0.55, 1) 0.4s forwards;
}
@keyframes scanline-sweep {
    0%   { top: 0;    opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Idle pulse halo on primary CTA */
@keyframes cta-idle-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 194, 117, 0.55); }
    100% { box-shadow: 0 0 0 24px rgba(229, 194, 117, 0); }
}
.cta-pulse-once {
    animation: cta-idle-pulse 1.6s ease-out;
}

/* CTA banner heading lines stack vertically for staggered reveal */
.cta-banner-line { display: block; }

/* CTA banner — differentiates from the dark navy body via a richer gradient
   (gold-tinted dark) so it doesn't blend into the background */
#cta-banner {
    background:
        radial-gradient(700px 400px at 80% 50%, rgba(196, 154, 71, 0.20), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(196, 154, 71, 0.10), transparent 60%),
        linear-gradient(135deg, #142A4F 0%, #08152D 100%) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(196, 154, 71, 0.15);
    border-bottom: 1px solid rgba(196, 154, 71, 0.15);
}
#cta-banner .cta-banner-heading,
#cta-banner h2 { color: #ffffff !important; }
#cta-banner .cta-banner-line:not(.text-primary-gold) { color: #ffffff !important; }
#cta-banner .text-primary-gold { color: var(--gold) !important; }
#cta-banner .cta-banner-sub,
#cta-banner p { color: rgba(255, 255, 255, 0.78) !important; }

/* Legacy hero / construction video + overlay rules — no longer have markup, hidden defensively */
.hero-video, .hero-overlay, .hero-overlay-vignette,
.construction-video, .construction-overlay, .construction-vignette, .construction-scanlines {
    display: none !important;
}

/* HUD/legacy heading overrides — dark theme variants
   (Construction + K9 sections are removed; rules kept defensively for legacy.) */
.cta-banner-heading { color: var(--ink) !important; }
.cta-banner-sub { color: var(--ink-soft) !important; }

/* ============================================
   Construction Security — Cinematic surveillance section
   ============================================ */
.construction-section {
    background: var(--bg);
    color: var(--ink);
    isolation: isolate;
}

/* Parchment backdrop — gold radial leans bottom-right for variety */
.construction-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 600px at 10% -5%, rgba(13, 35, 66, 0.06), transparent 60%),
        radial-gradient(900px 700px at 95% 105%, rgba(196, 154, 71, 0.18), transparent 60%),
        var(--bg);
}

.construction-grid-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(13, 35, 66, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 35, 66, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
}

/* Tactical viewfinder corner brackets */
.tactical-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: rgba(229, 194, 117, 0.45);
    z-index: 4;
    pointer-events: none;
}
.tactical-corner-tl {
    top: 1.5rem; left: 1.5rem;
    border-top: 2px solid;
    border-left: 2px solid;
}
.tactical-corner-bl {
    bottom: 1.5rem; left: 1.5rem;
    border-bottom: 2px solid;
    border-left: 2px solid;
}
.tactical-corner-br {
    bottom: 1.5rem; right: 1.5rem;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* REC indicator (top-right monitor badge) */
.rec-indicator {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    background: rgba(0, 11, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b3b;
    box-shadow:
        0 0 6px #ff3b3b,
        0 0 14px rgba(255, 59, 59, 0.55);
    animation: rec-blink 1.4s ease-in-out infinite;
}
.rec-label {
    font-weight: 700;
    color: #ff3b3b;
    letter-spacing: 0.2em;
}
.rec-meta {
    color: rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0.55rem;
}
@keyframes rec-blink {
    0%, 55%   { opacity: 1; }
    56%, 100% { opacity: 0.25; }
}

/* Small "CONSTRUCTION SECURITY" label */
.construction-label {
    display: inline-block;
    color: #E5C275;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    border: 1px solid rgba(229, 194, 117, 0.4);
    border-radius: 999px;
    margin-bottom: 2rem;
    background: rgba(229, 194, 117, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Heading */
.construction-heading {
    font-size: clamp(2.1rem, 4.6vw + 0.6rem, 4.8rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
.construction-h-line {
    display: block;
}
.construction-h-gold {
    background: linear-gradient(135deg, #E5C275 0%, #F1D89A 50%, #E5C275 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: gold-shimmer 6s ease-in-out infinite;
}

/* Description */
.construction-desc {
    font-size: clamp(1rem, 1.05vw + 0.55rem, 1.3rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 38rem;
    margin: 0 auto 2.75rem;
}

/* CTA */
.construction-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 2.5rem;
    background: linear-gradient(135deg, #E5C275 0%, #F4DCA0 50%, #E5C275 100%);
    background-size: 200% auto;
    color: #00132E;
    font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(229, 194, 117, 0.4),
        0 18px 42px -10px rgba(229, 194, 117, 0.5),
        0 0 28px rgba(229, 194, 117, 0.28);
    transition: background-position 0.6s ease,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
    will-change: transform;
}
.construction-cta i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.construction-cta:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(229, 194, 117, 0.55),
        0 26px 55px -8px rgba(229, 194, 117, 0.65),
        0 0 45px rgba(229, 194, 117, 0.4);
}
.construction-cta:hover i { transform: translateX(5px); }

/* ---------- Mobile sizing ---------- */
@media (max-width: 768px) {
    .rec-indicator { top: 1rem; right: 1rem; font-size: 0.6rem; padding: 0.35rem 0.7rem; gap: 0.4rem; }
    .rec-meta { display: none; }
    .tactical-corner { width: 24px; height: 24px; }
    .tactical-corner-tl { top: 1rem; left: 1rem; }
    .tactical-corner-bl { bottom: 1rem; left: 1rem; }
    .tactical-corner-br { bottom: 1rem; right: 1rem; }
    .construction-content { padding-top: 6rem; padding-bottom: 5rem; }
    .construction-label { font-size: 0.65rem; padding: 0.45rem 1.1rem; letter-spacing: 0.35em; margin-bottom: 1.5rem; }
    .construction-desc { margin-bottom: 2.25rem; }
    .construction-cta { padding: 1rem 2rem; }
}
@media (max-width: 480px) {
    .construction-section { min-height: 92vh; }
}

/* ============================================
   K9 Security — Cinematic K9 patrol section
   Infrared / night-vision atmosphere
   ============================================ */
.k9-section {
    background: var(--bg);
    color: var(--ink);
    isolation: isolate;
}

/* Parchment backdrop — gold radial leans right-middle for variation from hero/construction */
.k9-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 700px at 90% 50%, rgba(196, 154, 71, 0.20), transparent 60%),
        radial-gradient(800px 600px at 5% 0%, rgba(13, 35, 66, 0.06), transparent 60%),
        var(--bg);
}

.k9-grid-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(13, 35, 66, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 35, 66, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
}

/* Legacy video/overlay/scanline rules — kept as no-ops in case any are referenced */
.k9-video, .k9-overlay, .k9-vignette, .k9-scanlines, .k9-scan-beam { display: none; }
@keyframes ir-scan {
    0%   { top: -10%;  opacity: 0; }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.85; }
    100% { top: 100%; opacity: 0; }
}

/* K9 tactical corner override (slightly warm gold tone unchanged but reusing tactical-corner) */
.k9-corner { border-color: rgba(229, 194, 117, 0.45); }

/* Infrared HUD indicator (top-right) — red/orange instead of pure red */
.k9-hud {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    background: rgba(0, 11, 30, 0.72);
    border: 1px solid rgba(255, 122, 59, 0.30);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.k9-hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7a3b;
    box-shadow:
        0 0 6px #ff7a3b,
        0 0 14px rgba(255, 122, 59, 0.55);
    animation: rec-blink 1.6s ease-in-out infinite;
}
.k9-hud-label {
    font-weight: 700;
    color: #ff7a3b;
    letter-spacing: 0.22em;
}
.k9-hud-meta {
    color: rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0.55rem;
}

/* Label — "K9 Security" */
.k9-label {
    display: inline-block;
    color: #E5C275;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    border: 1px solid rgba(229, 194, 117, 0.4);
    border-radius: 999px;
    margin-bottom: 2rem;
    background: rgba(229, 194, 117, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Heading */
.k9-heading {
    font-size: clamp(2.1rem, 4.6vw + 0.6rem, 4.8rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
.k9-h-line { display: block; }
.k9-h-gold {
    background: linear-gradient(135deg, #E5C275 0%, #F1D89A 50%, #E5C275 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: gold-shimmer 6s ease-in-out infinite;
}

/* Description */
.k9-desc {
    font-size: clamp(1rem, 1.05vw + 0.55rem, 1.3rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 38rem;
    margin: 0 auto 2.75rem;
}

/* CTA — same premium gold pill */
.k9-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 2.5rem;
    background: linear-gradient(135deg, #E5C275 0%, #F4DCA0 50%, #E5C275 100%);
    background-size: 200% auto;
    color: #00132E;
    font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(229, 194, 117, 0.4),
        0 18px 42px -10px rgba(229, 194, 117, 0.5),
        0 0 28px rgba(229, 194, 117, 0.28);
    transition: background-position 0.6s ease,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
    will-change: transform;
}
.k9-cta i { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.k9-cta:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(229, 194, 117, 0.55),
        0 26px 55px -8px rgba(229, 194, 117, 0.65),
        0 0 45px rgba(229, 194, 117, 0.4);
}
.k9-cta:hover i { transform: translateX(5px); }

/* ---------- K9 Mobile sizing ---------- */
@media (max-width: 768px) {
    .k9-hud { top: 1rem; right: 1rem; font-size: 0.6rem; padding: 0.35rem 0.7rem; gap: 0.4rem; }
    .k9-hud-meta { display: none; }
    .k9-content { padding-top: 6rem; padding-bottom: 5rem; }
    .k9-label { font-size: 0.65rem; padding: 0.45rem 1.1rem; letter-spacing: 0.35em; margin-bottom: 1.5rem; }
    .k9-desc { margin-bottom: 2.25rem; }
    .k9-cta { padding: 1rem 2rem; }
    .k9-scan-beam { height: 80px; }
}
@media (max-width: 480px) {
    .k9-section { min-height: 92vh; }
}

/* ---------- Service Cards (large media area + cursor spotlight) ---------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(19, 43, 79, 0.55), rgba(0, 19, 46, 0.6));
    border: 1px solid rgba(229, 194, 117, 0.12);
    border-radius: 1.25rem;
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
                rgba(229, 194, 117, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 194, 117, 0.4);
    box-shadow: 0 30px 60px -25px rgba(229, 194, 117, 0.3),
                0 0 0 1px rgba(229, 194, 117, 0.08);
}
.service-card:hover::before { opacity: 1; }

/* ----- Media area (top of card, full bleed, big image) ----- */
.service-card-media {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-bottom: 1px solid rgba(229, 194, 117, 0.1);
    background:
        radial-gradient(circle at 50% 100%, rgba(0, 19, 46, 0.95) 0%, transparent 70%),
        linear-gradient(180deg, rgba(19, 43, 79, 0.4) 0%, rgba(0, 11, 30, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Soft gold radial glow behind the image */
.service-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(229, 194, 117, 0.30) 0%,
        rgba(229, 194, 117, 0.10) 40%,
        transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease;
    animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}
.service-card:hover .service-card-glow {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Subtle tech grid pattern in the bg */
.service-card-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(229, 194, 117, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 194, 117, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: center center;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
    opacity: 0.7;
}

/* Numbered tag in the corner */
.service-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(229, 194, 117, 0.7);
    background: rgba(0, 11, 30, 0.5);
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(229, 194, 117, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    z-index: 3;
}

/* The actual product image — much bigger now */
.service-card-img {
    position: relative;
    z-index: 2;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 30px rgba(229, 194, 117, 0.18));
    will-change: transform;
}
.service-card-img-cctv  { max-height: 200px; }
.service-card-img-k9    { max-height: 230px; }
.service-card-img-badge { max-height: 195px; }

.service-card:hover .service-card-img {
    transform: translateY(-6px) scale(1.06);
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.65))
            drop-shadow(0 0 50px rgba(229, 194, 117, 0.32));
}

/* Body of the card — text content */
.service-card-body {
    padding: 1.75rem 1.75rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card-body p { flex: 0 0 auto; }
.service-card-body ul { flex: 1; }

/* ---------- Service Card Mobile Tweaks ---------- */
@media (max-width: 768px) {
    .service-card-media { height: 220px; }
    .service-card-img-cctv  { max-height: 170px; }
    .service-card-img-k9    { max-height: 200px; }
    .service-card-img-badge { max-height: 165px; }
    .service-card-body { padding: 1.5rem 1.5rem 1.75rem; }
}

/* ---------- Proof / Our Work Cards ---------- */
.proof-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(229, 194, 117, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.proof-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.proof-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(13, 35, 66, 0.92) 35%, rgba(13, 35, 66, 0.6) 70%, transparent);
}
.proof-card figcaption h3 {
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.proof-card figcaption p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    line-height: 1.5;
}
/* Wide card (control room) — landscape, cover crop is fine */
.proof-card-wide img { aspect-ratio: 21 / 9; }

/* Tower cards — portrait, contain so the full pole shows. White card surface on cream. */
.proof-card:not(.proof-card-wide) {
    background: var(--surface);
}
.proof-card:not(.proof-card-wide) img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: center top;
}
.proof-card {
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 154, 71, 0.45);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.proof-card:hover img { transform: scale(1.04); }

/* ---------- Compact Trust/Accreditation Cards (qr-landing) ---------- */
.accred {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(0, 11, 30, 0.4);
    border: 1px solid rgba(229, 194, 117, 0.12);
    border-radius: 0.875rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.accred:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 194, 117, 0.35);
}

/* ---------- Form ---------- */
.form-field { display: flex; flex-direction: column; }
.form-field label {
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 0.6rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-field input::placeholder { color: rgba(255, 255, 255, 0.40); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 154, 71, 0.22);
    background: rgba(8, 21, 45, 0.85);
}
.form-field.has-error input,
.form-field.has-error select {
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
.form-error {
    display: none;
    color: #fca5a5;
    font-size: 0.78rem;
    margin-top: 0.4rem;
}
.form-field.has-error .form-error { display: block; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float { animation: whatsappPulse 2.4s infinite; }
.whatsapp-float:hover { animation: none; }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    50%      { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
}

/* ---------- Scroll Indicator Bounce ---------- */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.animate-bounce { animation: bounce 2s ease-in-out infinite; }

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #00132E; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #E5C275, #A8843B);
    border-radius: 5px;
    border: 2px solid #00132E;
}
::-webkit-scrollbar-thumb:hover { background: #E5C275; }

/* ---------- Selection ---------- */
::selection { background-color: #E5C275; color: #00132E; }
::-moz-selection { background-color: #E5C275; color: #00132E; }

/* ---------- Focus Ring ---------- */
*:focus-visible {
    outline: 2px solid #E5C275;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Mobile Optimizations ---------- */
@media (max-width: 768px) {
    .proof-card figcaption { padding: 1.5rem 1rem 1rem; }
    .proof-card figcaption h3 { font-size: 1.05rem; }
    .proof-card figcaption p { font-size: 0.8rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .whatsapp-float { animation: none; }
    .scanline { display: none; }
    .cta-pulse-once { animation: none; }
    .hero-blob, .hero-particles span,
    .hero-logo-halo, .hero-h1-gold,
    .hero-video, .hero-cta,
    .rec-dot, .construction-h-gold,
    .construction-video,
    .k9-video, .k9-hud-dot, .k9-h-gold,
    .k9-scan-beam { animation: none !important; }
    .hero-content > * { opacity: 1; transform: none; transition: none; }
    .intro-overlay { transition: opacity 0.2s linear, visibility 0.2s linear; }
    #navLogo { opacity: 1 !important; transform: scale(1) !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
    .whatsapp-float, nav, #hero video { display: none; }
    body { background: white; color: black; }
}
