/* ============================================================
   NEXORA TECHNOLOGIES — Master Stylesheet (style.css)
   ------------------------------------------------------------
   01. Design tokens & theming (light/dark, @property, RCP)
   02. Base, resets & webkit/moz tweaks
   03. Header, navbar & gradient scroll progress bar
   04. Buttons & badges
   05. Hero & 3D scene
   06. Sections, cards & utilities
   07. Features / Why choose us
   08. Services (container queries)
   09. Team
   10. Testimonials
   11. Pricing (grid + subgrid)
   12. Forms (:has, field-sizing, validation states)
   13. Career
   14. Contact & Google Map
   15. Footer & scroll-to-top
   16. Legal pages
   17. Scroll-driven animation & view transitions
   18. Breakpoints — 320px → 1441px+ (portrait & landscape)
   19. Reduced motion
   ============================================================ */

/* ---------- 01. DESIGN TOKENS & THEMING ---------- */

/* Animatable custom property: powers the rotating conic border
   on the featured pricing card. */
@property --nx-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 120deg;
}

:root {
    /* Brand palette (per-theme overrides below) */
    --nx-brand: #4f46e5;
    --nx-brand-2: #06b6d4;
    --nx-accent: #a855f7;
    
	/* Light theme tokens — CHANGE: brightness reduced (no pure-white surfaces,
     deeper page background, softer text) so light mode is easy on the eyes */
    --nx-bg: #e9edf6;
    --nx-bg-soft: #dfe4f0;
    --nx-surface: #f6f8fd;
    --nx-surface-2: #eef2fa;
    --nx-text: #26324a;
    --nx-muted: #5c6880;
    --nx-border: #d8dfef;
	/*--nx-header-bg: rgba(10, 14, 28, .55); /* CHANGE: dark header even in light mode */
	--nx-header-bg: rgba(11, 16, 32, .55);

    /* Accents & helpers */
    --nx-success: #16a34a;
    --nx-danger: #dc2626;
    --nx-star: #f59e0b;
    --nx-brand-soft: rgba(79, 70, 229, .13);
    --nx-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --nx-shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
    --nx-radius: 16px;
    --nx-radius-sm: 10px;
    --nx-header-h: clamp(3.625rem, 7vw, 4.625rem);
    --nx-grad: linear-gradient(120deg, var(--nx-brand), var(--nx-brand-2) 55%, var(--nx-accent));
	
	    /* CHANGE: dedicated input border token — clearly visible against the
       enhanced light-mode card surfaces */
    --nx-input-border: #a5b2d4;
	
	    /* CHANGE: "chrome" tokens — the header navbar and footer always use
       these DARK colors in BOTH themes. In light mode only the page body
       switches; in dark mode these match the existing dark palette exactly,
       so dark mode looks unchanged. */
    --nx-chrome-text: #e6eaf5;
    --nx-chrome-muted: #97a2bd;
    --nx-chrome-border: #26304b;
    --nx-chrome-surface: #131a2e;
    --nx-footer-bg: #0b1020;
}

/* Dark theme tokens (classic override = maximum browser support) */
[data-theme="dark"] {
    --nx-brand: #818cf8;
    --nx-brand-2: #22d3ee;
    --nx-accent: #c084fc;
    --nx-bg: #0b1020;
    --nx-bg-soft: #0f1628;
    --nx-surface: #131a2e;
    --nx-surface-2: #171f36;
    --nx-text: #e6eaf5;
    --nx-muted: #97a2bd;
    --nx-border: #26304b;
	    /* CHANGE: navbar transparency increased (alpha .82 → .45) *
    --nx-header-bg: rgba(10, 14, 28, .45); */
	    /* CHANGE: header mirrors the dark-mode footer color (#131a2e =
       rgb(19,26,46)) at the existing 45% transparency */
    --nx-header-bg: rgba(19, 26, 46, .45);
	--nx-footer-bg: #131a2e; /* CHANGE: keeps dark-mode footer exactly as before */
    --nx-brand-soft: rgba(129, 140, 248, .16);
    --nx-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --nx-shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
	
	    /* CHANGE: lighter border so inputs stand out on dark cards */
    --nx-input-border: #3d4c74;
}

/* Progressive enhancement: native light-dark() function.
   When supported, tokens resolve automatically from color-scheme. */
@supports (color: light-dark(#fff, #000)) {
    :root { color-scheme: light; }
    [data-theme="dark"] { color-scheme: dark; }
	
	:root {
        /* CHANGE: same softened light values via light-dark() */
        --nx-bg: light-dark(#e9edf6, #0b1020);
        --nx-bg-soft: light-dark(#dfe4f0, #0f1628);
        --nx-surface: light-dark(#f6f8fd, #131a2e);
        --nx-surface-2: light-dark(#eef2fa, #171f36);
        --nx-text: light-dark(#26324a, #e6eaf5);
        --nx-muted: light-dark(#5c6880, #97a2bd);
        --nx-border: light-dark(#d8dfef, #26304b);
        /* --nx-header-bg: light-dark(rgba(10, 14, 28, .55), rgba(10, 14, 28, .45)); */
		/* CHANGE: same footer-mirrored values via light-dark() */
        --nx-header-bg: light-dark(rgba(11, 16, 32, .55), rgba(19, 26, 46, .45));
        --nx-footer-bg: light-dark(#0b1020, #131a2e);
		--nx-input-border: light-dark(#a5b2d4, #3d4c74);
    }
}

/* Relative color syntax: derive a soft brand tint from the brand color.
   Falls back to --nx-brand-soft defined above where unsupported. */
@supports (color: oklch(from red l c h)) {
    :root { --nx-brand-soft: oklch(from var(--nx-brand) l c h / .14); }
}

/* ---------- 02. BASE, RESETS & TWEAKS ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;               /* smooth anchor scrolling */
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;                 /* Firefox scrollbar */
    scrollbar-color: var(--nx-brand) transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: var(--nx-bg);
    color: var(--nx-text);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;                    /* iOS-safe viewport height */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .35s ease, color .35s ease;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -.02em;
    text-wrap: balance;                    /* balanced heading lines */
    color: var(--nx-text);
}

p { text-wrap: pretty; }

a { color: var(--nx-brand); }

img, svg { max-width: 100%; height: auto; }

::selection { background: var(--nx-brand); color: #fff; }

/* WebKit scrollbar styling */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--nx-brand), var(--nx-brand-2));
    border-radius: 999px;
}

:focus-visible {
    outline: 3px solid var(--nx-brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--nx-header-h) + 1rem); }

/* Accessible skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--nx-brand);
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: 0 0 10px 0;
    text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 03. HEADER, NAVBAR & SCROLL PROGRESS BAR ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--nx-header-bg);
    -webkit-backdrop-filter: blur(16px);   /* Safari */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nx-chrome-border);
    transition: box-shadow .3s ease;

    /* Native CSS nesting — nav states */
    & .nav-link {
        position: relative;
        font-weight: 600;
        color: var(--nx-chrome-muted);
        padding: .55rem .95rem;
        transition: color .25s ease;
    }
    & .nav-link::after {
        content: "";
        position: absolute;
        left: .95rem;
        right: .95rem;
        bottom: .15rem;
        height: 2px;
        border-radius: 2px;
        background: var(--nx-grad);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s ease;
    }
    & .nav-link:hover,
    & .nav-link.active { color: var(--nx-chrome-text); }
    & .nav-link:hover::after,
    & .nav-link.active::after { transform: scaleX(1); }
}
.site-header.scrolled { box-shadow: var(--nx-shadow); }

.nx-navbar { min-height: var(--nx-header-h); padding-block: .3rem; }

/* Responsive logo — clamp() keeps it proportional on every screen */
.nx-brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}
.brand-logo { width: clamp(2rem, 3.4vw, 2.5rem); flex: none; }
/* CHANGE: full-logo SVG (mark + wordmark + tagline) — fluid width on all
   viewports, replaces the old mark-only .brand-logo sizing in the header */
.brand-logo-full {
    width: clamp(170px, 26vw, 250px);
    height: auto;
    display: block;
}
.brand-text {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--nx-chrome-text);
    white-space: nowrap;
}
.brand-accent {
    background: var(--nx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nx-nav-actions { display: flex; align-items: center; gap: .6rem; }

.nx-theme-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nx-chrome-border);
    border-radius: 12px;
    background: var(--nx-chrome-surface);
    color: var(--nx-chrome-text);
    font-size: 1.05rem;
    transition: transform .25s ease, border-color .25s ease;
}
.nx-theme-toggle:hover { border-color: var(--nx-brand); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }

.navbar-toggler {
    border: 1px solid var(--nx-chrome-border);
    border-radius: 10px;
    padding: .45rem .6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(230,234,245,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse { padding-block: .5rem; }

.scroll-progress {
    height: clamp(4px, .5vw, 6px);
    width: 100%;
    /* glossy red: bright top edge → deep blood-red body */
    background: linear-gradient(180deg, #ff6b6b 0%, #e00000 40%, #990000 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),  /* glossy top highlight  */
        inset 0 -1px 0 rgba(0, 0, 0, .35),       /* depth at bottom edge  */
        0 0 10px rgba(224, 0, 0, .55);           /* soft red glow         */
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
    /* CHANGE: alternating sheen (smooth back-and-forth, no visible loop jump) */
    /* animation: nx-progress-sheen 6s ease-in-out infinite alternate; */
    /* CHANGE: stronger dual glow so the bar stands out against the header */
    /* box-shadow: 0 0 8px rgba(34, 211, 238, .55), 0 0 18px rgba(99, 102, 241, .35); */
}
@keyframes nx-progress-sheen {
    from { background-position: 0% 0; }
    to   { background-position: 100% 0; }
}


@keyframes nx-progress-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- 04. BUTTONS & BADGES ---------- */

.btn-nx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--nx-grad);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .8rem 1.75rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px var(--nx-brand-soft);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-nx:hover, .btn-nx:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 34px var(--nx-brand-soft);
}
.btn-nx-sm { padding: .55rem 1.25rem; font-size: .92rem; }

.btn-nx-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--nx-surface);
    color: var(--nx-text);
    border: 2px solid var(--nx-border);
    border-radius: 999px;
    padding: .75rem 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .25s ease, transform .25s ease, color .25s ease;
}
.btn-nx-outline:hover {
    border-color: var(--nx-brand);
    color: var(--nx-brand);
    transform: translateY(-2px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--nx-brand-soft);
    color: var(--nx-brand);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .42rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.text-grad {
    background: var(--nx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================================
   HERO — FINAL consolidated block.
   CHANGE: replaces ALL previous hero & 3D-scene rules in one place
   so nothing can conflict or go missing again.
   ============================================================ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(4.5rem, 11vw, 8rem);
    color: #fff; /* hero is cinematic-dark in BOTH themes */
}

/* --- Background media stack --- */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(1200px 600px at 70% 20%, #101a3a 0%, #070b18 60%, #05070f 100%);
}
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 340px at 78% 26%, rgba(79, 70, 229, .34), transparent 65%),
        radial-gradient(480px 320px at 18% 82%, rgba(6, 182, 212, .22), transparent 65%),
        radial-gradient(420px 280px at 55% 60%, rgba(168, 85, 247, .14), transparent 65%);
    animation: nx-glow-breathe 9s ease-in-out infinite alternate;
}
@keyframes nx-glow-breathe {
    from { opacity: .75; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.06); }
}

/* Neural network: drift + flowing data lines + pulsing nodes */
.hero-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .85;
    animation: nx-net-drift 18s ease-in-out infinite alternate;
}
@keyframes nx-net-drift {
    from { transform: translate3d(-1.2%, 0, 0) scale(1.05); }
    to   { transform: translate3d(1.2%, -1.5%, 0) scale(1.1); }
}
.net-lines path {
    stroke: rgba(129, 140, 248, .35);
    stroke-dasharray: 6 10;
    animation: nx-data-flow 2.8s linear infinite;
}
@keyframes nx-data-flow { to { stroke-dashoffset: -32; } }
.net-nodes circle {
    fill: #22d3ee;
    transform-box: fill-box;
    transform-origin: center;
    animation: nx-node-pulse 3.6s ease-in-out infinite;
}
.net-nodes circle:nth-child(2n) { fill: #818cf8; animation-delay: -1.2s; }
.net-nodes circle:nth-child(3n) { fill: #c084fc; animation-delay: -2.4s; }
@keyframes nx-node-pulse {
    0%, 100% { transform: scale(1);   opacity: .7; }
    50%      { transform: scale(1.8); opacity: 1; }
}

/* Optional video layer — invisible unless playback starts (main.js),
   so a missing hero.webm never blanks the hero */
.hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero-media.video-live video { opacity: 1; }

/* Readability scrim */
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 15, .58) 0%, rgba(5, 7, 15, .30) 45%, rgba(5, 7, 15, .74) 100%);
}

/* --- Hero copy --- */
.hero-copy { position: relative; max-width: 760px; }
.hero-title {
    font-size: clamp(2.1rem, 5.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    color: #fff; /* pinned light — dark backdrop in both themes */
}
.hero-sub {
    color: rgba(233, 237, 246, .85);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 56ch;
    margin-bottom: 1.75rem;
}

/* First-paint entry animation (@starting-style) */
.hero-title, .hero-sub, .hero-cta, .hero-stats {
    transition: opacity .6s ease, translate .6s ease;
    opacity: 1;
    translate: 0 0;
}
@starting-style {
    .hero-title, .hero-sub, .hero-cta, .hero-stats {
        opacity: 0;
        translate: 0 22px;
    }
}

/* --- Stats: 2 columns on phones → 4 columns from tablets up
   (CHANGE: this restores the grid that was lost) --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    max-width: 620px;
}
@media (min-width: 768px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.stat-num {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    background: var(--nx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* .stat-label { color: rgba(233, 237, 246, .72); font-size: .85rem; } */
/* CHANGE: base stat label is theme-aware again — fixes about.php stats that
   were stuck at the hero's pinned light color in light mode */
.stat-label { color: var(--nx-muted); font-size: .85rem; }

/* Hero-only override (hero backdrop is dark in BOTH themes) */
.hero .stat-label { color: rgba(233, 237, 246, .72); }

/* --- Hero controls pinned for the dark backdrop --- */
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #c7d2fe; }
.hero .btn-nx-outline {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.hero .btn-nx-outline:hover { border-color: #fff; color: #fff; }

/* Interior-page hero banner */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(560px 300px at 50% 0%, var(--nx-brand-soft), transparent 70%);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--nx-muted); max-width: 60ch; margin: .75rem auto 0; }

/* ---------- 06. SECTIONS, CARDS & UTILITIES ---------- */

.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section-alt { background: var(--nx-bg-soft); }

.section-head {
    max-width: 660px;
    margin: 0 auto clamp(2rem, 5vw, 3.25rem);
    text-align: center;
}
.section-title { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin-bottom: .8rem; }
.section-head p { color: var(--nx-muted); margin-bottom: 0; }

.nx-card {
    height: 100%;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: clamp(1.3rem, 2.5vw, 1.8rem);
    box-shadow: var(--nx-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nx-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nx-shadow-lg);
    border-color: var(--nx-brand);
}

.icon-chip {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    color: #fff;
    background: var(--nx-grad);
    border-radius: 14px;
    box-shadow: 0 8px 20px var(--nx-brand-soft);
    margin-bottom: 1.1rem;
}

/* 3D tilt presentation for card grids */
.tilt-zone { perspective: 1200px; }
.tilt-card {
    transform-style: preserve-3d;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.tilt-zone .tilt-card:hover { transform: rotateX(5deg) rotateY(-6deg) translateY(-6px); }
.tilt-card .icon-chip { transform: translateZ(28px); }

/* content-visibility: auto — skips rendering below-fold sections */
.cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 640px;
}

/* ---------- 07. FEATURES / WHY CHOOSE US ---------- */

.feature-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: 1.3rem 1.4rem;
    transition: transform .3s ease, box-shadow .3s ease;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.feature-item .icon-chip { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 0; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature-item p { color: var(--nx-muted); font-size: .93rem; margin: 0; }

/* ---------- 08. SERVICES (container queries) ---------- */

.svc-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.svc-chip {
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    color: var(--nx-text);
    border: 1.5px solid var(--nx-border);
    background: var(--nx-surface);
    padding: .5rem 1.1rem;
    border-radius: 999px;
    transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.svc-chip:hover { border-color: var(--nx-brand); color: var(--nx-brand); transform: translateY(-2px); }

/* Container query wrapper: layout adapts to the container width,
   not the viewport — a true modern-CSS container query. */
.svc-detail-wrap {
    container-type: inline-size;
    container-name: svc;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--nx-border);
}
.svc-detail-wrap:last-of-type { border-bottom: 0; }

.svc-detail {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}
/* When the container is wide enough, go two-column and alternate */
@container svc (min-width: 860px) {
    .svc-detail { grid-template-columns: 1fr 1fr; }
    .svc-detail.flip .svc-media { order: 2; }
}

.svc-media {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: clamp(200px, 24vw, 280px);
    border-radius: var(--nx-radius);
    background: var(--nx-grad);
    color: #fff;
    font-size: clamp(3rem, 6vw, 4.5rem);
}
.svc-media::after {
    content: "";
    position: absolute;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    right: -18%;
    bottom: -28%;
}

.svc-body h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: .8rem; }
.svc-body > p { color: var(--nx-muted); }

.check-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; }
.check-list i { color: var(--nx-success); flex: none; }

/* Process strip */
.process-strip {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.process-step {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: 1.4rem;
    text-align: center;
}
.step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto .8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
    background: var(--nx-grad);
}
.process-step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.process-step p { color: var(--nx-muted); font-size: .9rem; margin: 0; }

/* ---------- 09. TEAM ---------- */

.team-card { text-align: center; }
.avatar-initials {
    width: clamp(80px, 10vw, 100px);
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 800;
    color: #fff;
    background: var(--nx-grad);
    box-shadow: 0 10px 24px var(--nx-brand-soft);
}
.team-card h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.team-role { color: var(--nx-muted); font-size: .88rem; margin-bottom: .8rem; }
.team-social { display: flex; justify-content: center; gap: .5rem; }
.team-social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--nx-border);
    color: var(--nx-muted);
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.team-social a:hover { color: var(--nx-brand); border-color: var(--nx-brand); transform: translateY(-2px); }

/* ---------- 10. TESTIMONIALS ---------- */

/* ---------- Testimonials: dependency-free fade slider (FINAL) ----------
   CHANGE: no Bootstrap carousel classes — our own .is-active switching,
   so nothing external can freeze or snap it. */
.testimonials .section-head { position: relative; z-index: 0; } /* hovered card stays above */

.t-track { display: grid; }
.t-slide {
    grid-area: 1 / 1;              /* stack slides; height = tallest → no jump */
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(.985);
    transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
    pointer-events: none;
}
.t-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    z-index: 2;                    /* lifted card paints above header text */
    transition: opacity .55s ease, transform .55s ease, visibility 0s;
}

.t-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.t-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--nx-border);
    background: var(--nx-surface);
    color: var(--nx-text);
    transition: color .25s ease, border-color .25s ease;
}
.t-arrow:hover { color: var(--nx-brand); border-color: var(--nx-brand); }
.t-dots { display: flex; gap: .5rem; }
.t-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--nx-border);
	opacity: .45;
    transition: width .3s ease, background-color .3s ease;
}
.t-dot:hover { opacity: .8; }
.t-dot.active { width: 26px; background: var(--nx-brand); opacity: 1; }

.t-card {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.75rem);
}
.t-stars { color: var(--nx-star); letter-spacing: .2em; margin-bottom: 1rem; }
.t-quote {
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.t-person { display: flex; align-items: center; justify-content: center; gap: .85rem; }
.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--nx-grad);
    flex: none;
}
.t-person strong { display: block; line-height: 1.2; }
.t-person span { color: var(--nx-muted); font-size: .85rem; }

.testimonials .carousel-control-prev,
.testimonials .carousel-control-next { width: auto; opacity: 1; }
.testimonials .carousel-indicators [data-bs-target] { background-color: var(--nx-brand); }

/* ---------- 11. PRICING (grid + subgrid) ---------- */

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    row-gap: 0; /* subgrid rows manage internal spacing */
    grid-template-columns: 1fr;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--nx-surface);
    border: 2px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--nx-shadow);
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
}
.price-head { margin-bottom: 1rem; }
.price-head h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.price-head p { color: var(--nx-muted); font-size: .88rem; margin: 0; }
.price-amount { margin-bottom: 1.25rem; }
.price-num { font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 800; }
.price-per { color: var(--nx-muted); font-size: .88rem; }
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .6rem;
    font-size: .93rem;
}
.price-features li { display: flex; gap: .55rem; align-items: baseline; }
.price-features i { color: var(--nx-success); }
.price-card .btn-wrap { margin-top: auto; }
.price-card .btn-wrap .btn-nx,
.price-card .btn-wrap .btn-nx-outline { width: 100%; }

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nx-grad);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem .95rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Featured card: animated conic gradient border (via @property) */
.price-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
        conic-gradient(from var(--nx-angle),
            var(--nx-brand), var(--nx-brand-2), var(--nx-accent), var(--nx-brand)) border-box;
    animation: nx-angle-spin 7s linear infinite;
}
@keyframes nx-angle-spin { to { --nx-angle: 480deg; } }

/* Subgrid upgrade: feature lists and buttons align across cards.
   Only applied on 3-column desktop layout where supported. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 992px) {
        .pricing-grid { grid-template-columns: repeat(3, 1fr); }
        .price-card {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 4;
            max-width: none;
        }
    }
}

/* ---------- 12. FORMS ---------- */

.nx-form .form-group { margin-bottom: 1.2rem; }
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.req-hint { color: var(--nx-danger); }

.form-control,
.form-select {
	/* CHANGE: resting border now uses the theme-aware input token, so it is
       clearly visible in BOTH themes before hover/focus */
	/* appearance: none; */
    background: var(--nx-surface);
    border: 1.5px solid var(--nx-input-border);
    color: var(--nx-text);
    border-radius: 12px;
    padding: .72rem 1rem;
    transition: border-color .25s ease, box-shadow .25s ease;
}

/* Fallback chevron for standard selects (Firefox / Safari / unflagged Chrome) */
@supports not (appearance: base-select) {
    .form-select {
        appearance: none;
        background:
            var(--nx-surface)
            url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238a94ad'><path d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>")
            no-repeat right 1rem center / 14px 14px;
        padding-right: 2.5rem;
    }
    /* Keep the chevron visible even while focused (gradient border on) */
    .form-select:focus {
        background:
            url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238a94ad'><path d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>")
            no-repeat right 1rem center / 14px 14px,
            linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
            var(--nx-grad) border-box;
    }
}

/* ---------- Customizable select (Chromium with base-select enabled) ---------- */
@supports (appearance: base-select) {
    .svc-select {
        appearance: base-select;
        background: var(--nx-surface);
        padding: 0;
    }

    /* Trigger button */
    .svc-select > button {
        display: flex;
        align-items: center;
        gap: .7rem;
        width: 100%;
        padding: .72rem 1rem;
        background: transparent;
        border: 0;
        color: var(--nx-text);
        font-size: 1rem;
        cursor: pointer;
    }

    /* Hide the experimental native picker icon — we use our own ::after chevron */
    .svc-select::picker-icon,
    .svc-select > button::picker-icon { display: none; content: none; }

    .svc-select > button::after {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        content: "\f078";                 /* chevron-down */
        font-size: .78rem;
        margin-left: auto;                /* right edge, vertically centered */
        color: var(--nx-muted);
        transition: rotate .3s ease;
    }
    .svc-select:open > button::after { rotate: 180deg; }

    /* FIX: the picker box must ALSO opt in with `appearance: base-select`,
       otherwise Chromium draws the native WHITE listbox and ignores every
       custom style (theme background, radius, shadow) below it */
    .svc-select::picker(select) {
        appearance: base-select;
        border: 1px solid var(--nx-card-border);
        border-radius: 16px;
        background: var(--nx-card-grad);   /* theme-aware card gradient */
        color: var(--nx-text);             /* theme-aware text */
        box-shadow: var(--nx-card-shadow), 0 20px 40px rgba(15, 23, 42, .18);
        padding: .55rem;
        margin-top: 8px;
        min-width: 280px;
    }

    /* Selected value shown in the trigger */
    .svc-select selectedcontent {
        display: flex;
        align-items: center;
        gap: .65rem;
        font-weight: 400;
        font-size: .98rem;
    }

    /* FIX: options must opt in with `appearance: base-option`, otherwise they
       render as NATIVE text-only rows — icons stripped and white background,
       which made your dark-theme text invisible */
    .svc-select option {
        appearance: base-option;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: .75rem;
        padding: .7rem .9rem;
        margin: 3px 0;
        border-radius: 10px;
        background: transparent;
        font-size: .96rem;
        font-weight: 500;
        color: var(--nx-text);
        cursor: pointer;
        transition: background-color .2s ease;
    }
    .svc-select option span { flex: 1 1 auto; text-align: left; }
    .svc-select option:hover { background: var(--nx-brand-soft); }
    .svc-select option:checked {
        background: var(--nx-brand-soft);
        color: var(--nx-brand);
        font-weight: 600;
    }
    .svc-select option::checkmark {
        margin-left: 0;
        color: var(--nx-brand);
        font-weight: 700;
        content: "✓";
    }

    /* Icon sizing inside trigger + options */
    .svc-select selectedcontent .svc-icon,
    .svc-select option .svc-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .svc-select option:disabled { color: var(--nx-muted); font-style: italic; cursor: not-allowed; }
    .svc-select option:disabled:hover { background: transparent; }
}

/* Service icon colors (unchanged) */
.svc-icon-software  { color: #6366f1; }
.svc-icon-web       { color: #0ea5e9; }
.svc-icon-marketing { color: #f59e0b; }
.svc-icon-seo       { color: #10b981; }
.svc-icon-ites      { color: #8b5cf6; }

		
.form-control::placeholder { color: var(--nx-muted); opacity: .75; }

/* ---------- Email fields: UPPERCASE placeholder, lowercase typing ----------
   CHANGE: the placeholder renders in UPPERCASE as a stylistic hint, while
   typed characters render in lowercase. text-transform affects display
   only — main.js (below) also lowercases the real value so the submitted
   data matches what the user sees. */
input[type="email"].form-control {
    text-transform: lowercase;
}
input[type="email"].form-control::placeholder {
    text-transform: uppercase;
    letter-spacing: .03em;
}

input[type="text"].form-control {
    text-transform: uppercase;
}
input[type="text"].form-control::placeholder {
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* CHANGE: subtle hover feedback before focus */
.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: var(--nx-brand);
}

.form-control:focus,
.form-select:focus {
	color: var(--nx-text);
    border-color: transparent;
    background:
        linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
        var(--nx-grad) border-box;
    box-shadow: 0 0 0 .25rem var(--nx-brand-soft);
}

/* Auto-growing textarea (falls back to rows/min-height elsewhere) */
textarea.form-control {
    field-sizing: content;
    min-height: 130px;
    max-height: 340px;
    resize: vertical;
}

/* :has() parent selector — highlight label of invalid / focused groups */
.form-group:has(input:focus-visible, select:focus-visible, textarea:focus-visible) .form-label {
    color: var(--nx-brand);
}
@supports selector(:user-invalid) {
    .nx-form :user-invalid { border-color: var(--nx-danger); }
    .form-group:has(:user-invalid) .form-label { color: var(--nx-danger); }
}

/* File upload drop-zone (single-select by design — no `multiple`) */
.file-drop {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.2rem;
	    /* CHANGE: visible resting dashed border in both themes */
    border: 2px dashed var(--nx-input-border);
    border-radius: 14px;
    background: var(--nx-surface-2);
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease;
}
.file-drop:hover,
.file-drop:has(input[type="file"]:focus-visible) { border-color: var(--nx-brand); }
.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-icon { font-size: 1.7rem; color: var(--nx-brand); }
.file-name {
    margin-left: auto;
    font-size: .82rem;
    font-weight: 600;
    color: var(--nx-brand);
    background: var(--nx-brand-soft);
    padding: .3rem .75rem;
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Honeypot anti-spam field — visually hidden from humans */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-response:empty { display: none; }

/* HTMX request indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-block; }

/* ---------- 13. CAREER ---------- */

.benefit-item { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-item i {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
    border-radius: 12px;
    background: var(--nx-grad);
}
.benefit-item h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.benefit-item p { color: var(--nx-muted); font-size: .92rem; margin: 0; }

/* Container query: job cards re-arrange based on container width */
.job-wrap { container-type: inline-size; container-name: jobs; display: grid; gap: 1.25rem; }
.job-card {
    display: grid;
    gap: 1rem;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--nx-shadow);
    transition: transform .3s ease, border-color .3s ease;
}
.job-card:hover { transform: translateY(-3px); border-color: var(--nx-brand); }
.job-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.job-card .job-desc { color: var(--nx-muted); font-size: .92rem; margin: .5rem 0 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
    font-size: .76rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--nx-brand-soft);
    color: var(--nx-brand);
    white-space: nowrap;
}
@container jobs (min-width: 760px) {
    .job-card { grid-template-columns: 1.5fr auto auto; align-items: center; }
    .job-card .job-desc { grid-column: 1 / -1; }
}

/* ---------- 14. CONTACT & GOOGLE MAP ---------- */

.info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.info-card i {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 12px;
    background: var(--nx-grad);
}
.info-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.info-card p, .info-card a { color: var(--nx-muted); font-size: .92rem; margin: 0; text-decoration: none; }
.info-card a:hover { color: var(--nx-brand); }

.map-wrap {
	position: relative;
    border-radius: var(--nx-radius);
    overflow: hidden;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow);
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 460px);
    border: 0;
}

/* ---------- Google Maps dimming overlay (eye-strain relief) ----------
   FIX: correct class (.map-wrap) + positioned wrapper, so the overlay
   actually covers the map. pointer-events: none keeps the map fully
   interactive (drag, zoom, clicks pass through). */
.map-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Light mode: soft slate tint that cuts the white glare */
    background: rgba(15, 23, 42, .30);
    transition: background-color .35s ease;
}

/* Dark mode: deeper dim, like the native Google Maps dark overlay */
[data-theme="dark"] .map-wrap::after {
    background: rgba(4, 8, 16, .38);
}

/* CHANGE: soften the bright white tiles in light mode as well
   (dark mode keeps its own invert filter, which overrides this) */
.map-wrap iframe {
    filter: brightness(.95) saturate(.88);
}

/* OPTIONAL (recommended): true "dark map" tiles in dark mode.
   The invert + hue-rotate trick re-themes the actual map tiles,
   exactly like Google's own dark mode. Delete this rule if you
   prefer plain dimming only. */
[data-theme="dark"] .map-wrap iframe {
    filter: invert(88%) hue-rotate(180deg) brightness(.92) contrast(.92) saturate(.85);
}

/* ---------- Custom pin label: "Tanzeel iTech" over the marker ----------
   CHANGE: the embed marker always sits at the map's exact center, so the
   bubble is anchored to 50%/50% and lifted above the pin. Sits ABOVE the
   dim overlay (z-2) but never blocks clicks (pointer-events: none).
   Uses the dark-chrome tokens so it reads perfectly in BOTH themes. */
.map-pin-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-100% - 46px)); /* clear the pin height */
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--nx-surface);
    color: var(--nx-text);
    border: 1px solid var(--nx-chrome-border);
    border-radius: 12px;
    padding: .55rem .95rem;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* Small brand cube dot before the name */
.map-pin-label::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, #2f5cb8, #7e96c6); /* cube blues */
    flex: none;
}

/* Downward arrow pointing at the marker */
.map-pin-label::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--nx-chrome-surface);
}

/* ---------- 15. FOOTER & SCROLL-TO-TOP ---------- */

.site-footer {
    flex: none;
    margin-top: clamp(2rem, 5vw, 4rem);
    background: var(--nx-footer-bg);
    border-top: 1px solid var(--nx-chrome-border);
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.footer-grid {
    display: grid;
    gap: 2.25rem;
    grid-template-columns: 1fr;
    padding-bottom: clamp(2rem, 5vw, 3rem);
}
.footer-brand p { color: var(--nx-chrome-muted); font-size: .93rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.footer-logo .brand-text { font-size: 1.2rem; }

.footer-title {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--nx-chrome-text);
    margin-bottom: 1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-link {
    position: relative;
    color: var(--nx-chrome-muted);
    text-decoration: none;
    font-size: .94rem;
    transition: color .25s ease, padding-left .25s ease;
}
.footer-link::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--nx-brand);
    transition: opacity .25s ease;
}
.footer-link:hover, .footer-link.active { color: var(--nx-brand); padding-left: 1.15rem; }
.footer-link:hover::before, .footer-link.active::before { opacity: 1; }

.footer-contact li { display: flex; gap: .6rem; color: var(--nx-chrome-muted); font-size: .92rem; }
.footer-contact i { color: var(--nx-brand); flex: none; margin-top: .2rem; }
.footer-contact a { color: var(--nx-chrome-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--nx-brand); }

.footer-social { display: flex; gap: .55rem; }
.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border-color: 1px solid var(--nx-chrome-border);
    color: var(--nx-chrome-muted);
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-social a:hover { color: var(--nx-brand); border-color: var(--nx-brand); transform: translateY(-3px); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
    border-top-color: 1px solid var(--nx-chrome-border);
    padding-block: 1.25rem;
    font-size: .87rem;
    color: var(--nx-chrome-muted);
}
.footer-tagline { font-style: italic; }

/* Scroll-to-top: hidden until scrolled; CSS scroll-driven where
   supported, otherwise .show class from main.js */
.to-top {
    position: fixed;
    right: clamp(.9rem, 2.5vw, 1.6rem);
    bottom: clamp(.9rem, 2.5vw, 1.6rem);
    z-index: 1040;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: var(--nx-grad);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: var(--nx-shadow-lg);
    opacity: 0;
    visibility: hidden;
    translate: 0 12px;
    transition: opacity .3s ease, translate .3s ease, visibility .3s ease, transform .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Quick-contact widget (right edge, top 35%) ----------
   CHANGE: fixed position = never affects page layout; sits at 35% from
   the top on ALL viewports; auto-hidden when the viewport is too short
   to fit it (e.g. phone landscape). */
.nx-quick-contact {
    position: fixed;
    top: 35%;                       /* required position on every viewport */
    right: clamp(6px, 1.2vw, 16px);
    z-index: 1025;                  /* below sticky header, above content */
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.qc-btn {
    width: clamp(38px, 4.5vw, 46px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.qc-btn:hover, .qc-btn:focus-visible {
    transform: translateX(-4px) scale(1.06);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .35);
}

/* Screenshot-matching colors */
.qc-tel  { background: #43a047; }  /* phone    — green  */
.qc-mail { background: #e05252; }  /* email    — red    */
.qc-wa   { background: #25d366; }  /* whatsapp — green  */
.qc-tg   { background: #2aabee; }  /* telegram — blue   */

/* Tooltip label (name only — no numbers/addresses exposed) */
.qc-btn::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    translate: 0 -50%;
    background: var(--nx-chrome-surface);
    color: var(--nx-chrome-text);
    border: 1px solid var(--nx-chrome-border);
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.qc-btn:hover::after,
.qc-btn:focus-visible::after { opacity: 1; }

/* Hide the widget when the viewport is too short to fit it
   (small phones in landscape) so it never crowds the content */
@media (max-height: 420px) {
    .nx-quick-contact { display: none; }
}


/* ---------- Stylish tooltips — same look as the quick-contact widget labels
   CHANGE: tooltips added to scroll-to-top (ABOVE), theme toggle (BELOW) and
   footer social icons (BELOW), reusing the widget's chrome pill styling. */
.nx-theme-toggle,
.footer-social a { position: relative; }

/* CHANGE: hover translateY removed — moving the icon made :hover oscillate
   at the pointer edge, which caused the tooltip to blink. Color/border
   change kept as hover feedback instead. */
.footer-social a:hover { color: var(--nx-brand); border-color: var(--nx-brand); }
/* CHANGE: hover movement removed to prevent tooltip flicker (same reason);
   a shadow lift is used as hover feedback instead of a transform. */
.to-top:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }

.to-top::after,
.nx-theme-toggle::after,
.footer-social a::after {
    position: absolute;
    left: 50%;
    background: var(--nx-chrome-surface);
    color: var(--nx-chrome-text);
    border: 1px solid var(--nx-chrome-border);
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, translate .25s ease;
    z-index: 1060;
}

/* Scroll-to-top: tooltip ABOVE the button, rises into place on hover */
.to-top::after {
    content: attr(data-label);
    bottom: calc(100% + 8px);
    translate: -50% 6px;
}
.to-top:hover::after,
.to-top:focus-visible::after { opacity: 1; translate: -50% 0; }

/* Theme toggle: tooltip BELOW the button; text follows the active theme */
.nx-theme-toggle::after {
    content: "Switch to light";
    top: calc(100% + 8px);
    translate: -50% -6px;
}
[data-theme="light"] .nx-theme-toggle::after { content: "Switch to dark"; }
.nx-theme-toggle:hover::after,
.nx-theme-toggle:focus-visible::after { opacity: 1; translate: -50% 0; }

/* Footer social icons: tooltip BELOW the icon */
.footer-social a::after {
    content: attr(data-label);
    top: calc(100% + 8px);
    translate: -50% -6px;
}
.footer-social a:hover::after,
.footer-social a:focus-visible::after { opacity: 1; translate: -50% 0; }

/* ---------- 16. LEGAL PAGES ---------- */

.legal-content { max-width: 820px; margin-inline: auto; }
.updated-pill {
    display: inline-block;
    /* background: var(--nx-brand-soft); */
	background: var(--nx-brand);
    /* color: var(--nx-brand); */
	color: #fff;
	box-shadow: 0 6px 16px var(--nx-brand-soft);
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

/* Dark theme keeps the original soft look */
[data-theme="dark"] .updated-pill {
    background: var(--nx-brand-soft);
    color: var(--nx-brand);
    box-shadow: none;
}

.legal-section { margin-bottom: 2.25rem; }
.legal-section h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.legal-section p, .legal-section li { color: var(--nx-muted); font-size: .96rem; }

/* CTA banner */
.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: calc(var(--nx-radius) + 6px);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--nx-grad);
    color: #fff;
}
.cta-banner::after {
    content: "";
    position: absolute;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    top: -30%;
    right: -10%;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.cta-banner p { opacity: .92; max-width: 56ch; margin: .75rem auto 1.75rem; }
.cta-banner .btn-light-nx {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--nx-brand);
    font-weight: 700;
    border-radius: 999px;
    padding: .85rem 1.9rem;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cta-banner .btn-light-nx:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }

/* ---------- 17. SCROLL-DRIVEN ANIMATION & VIEW TRANSITIONS ---------- */

@keyframes nx-reveal {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reveal-on-scroll, progress bar growth and to-top visibility are
   scroll-driven where supported — zero JavaScript required. */
@supports (animation-timeline: scroll()) {
    .reveal {
        animation: nx-reveal linear both;
        animation-timeline: view();
        animation-range: entry 5% entry 45%;
    }
	
	.scroll-progress {
		animation: none;
    }
}

/* Smooth theme switch via the View Transition API (triggered in JS) */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .35s;
}

/* ---------- 18. BREAKPOINTS (320px → 1441px+) ---------- */

/* Base styles above target small phones from 320px up (portrait & landscape). */

/* ≥481px — large phones */
@media (min-width: 481px) {
    .file-drop { flex-wrap: nowrap; }
}

/* ≥768px — tablets portrait (Android & iPad) */
@media (min-width: 768px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ≥1025px — tablets landscape / small laptops & PC */
@media (min-width: 1025px) {
    .hero-grid { grid-template-columns: 1.05fr .95fr; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2.1fr 1fr 1fr 1.5fr; }
    .price-card.featured { transform: scale(1.035); }
}

/* ≥1441px — large monitors */
@media (min-width: 1441px) {
    .section { padding-block: clamp(4.5rem, 6vw, 7rem); }
}

/* Phone landscape: keep hero compact, menu scrollable */
@media (max-width: 932px) and (orientation: landscape) and (max-height: 560px) {
    .hero { padding-block: 2rem; }
    .hero-scene { min-height: 220px; }
    .navbar-collapse { max-height: 62vh; overflow-y: auto; }
}

/* Short viewports in general — keep the mobile menu usable */
@media (max-height: 480px) {
    .navbar-collapse { max-height: 70vh; overflow-y: auto; }
}

/* ---------- 19. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .scroll-progress { transform: scaleX(1); animation: none; }
    /* .to-top { opacity: 1; visibility: visible; translate: 0 0; animation: none; } */
	.to-top { animation: none; transition: none; }
    .reveal { animation: none; }
	
	/* CHANGE: EXEMPTION — keep the hero neural-network ambient animations
       alive even when the OS requests reduced motion. These are slow,
       subtle background motions the site owner wants visible.
       Class/element selectors + !important outrank the * blanket above,
       so the animations below run at their intended speed. */
    .hero-glow {
        animation: nx-glow-breathe 9s ease-in-out infinite alternate !important;
    }
    .hero-net {
        animation: nx-net-drift 18s ease-in-out infinite alternate !important;
    }
    .net-lines path {
        animation: nx-data-flow 2.8s linear infinite !important; /* flowing data lines */
    }
    .net-nodes circle {
        animation: nx-node-pulse 3.6s ease-in-out infinite !important; /* pulsing nodes */
    }
	        /* CHANGE: keep the testimonial fade smooth under reduced motion too */
    .t-slide,
    .t-slide.is-active {
        transition: opacity .55s ease, transform .55s ease, visibility 0s !important;
    }
	    /* CHANGE: keep the section wipe running under reduced motion too
       (same exemption pattern as the hero & testimonial animations) */
    .scroll-effect,
    .section,
    .page-hero {
        animation: nx-appear linear both !important;
        animation-timeline: view() !important;
        animation-range: entry 0% cover 40% !important;
    }
	
	    /* CHANGE: keep the loader trace flow running under reduced motion too
       (consistent with hero/testimonial exemptions). The fade-out on page
       load is unchanged so the loader still disappears normally. */
    .nx-trace-flow {
        animation: nx-trace-flow 3s cubic-bezier(0.5, 0, 0.9, 1) infinite !important;
    }
}

/* ---------- 20. ERROR PAGES (403 / 404 / 500) ----------
   Standalone pages reuse the site tokens, dark chrome header/footer
   and gradient branding so errors still feel on-brand. */
.error-main {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(3rem, 8vw, 6rem);
}
/* Soft brand glow behind the error code */
.error-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(560px 340px at 50% 30%, var(--nx-brand-soft), transparent 70%);
}
.error-icon {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--nx-brand);
    margin-bottom: .5rem;
}
.error-code {
    font-size: clamp(5rem, 18vw, 10.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: var(--nx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-content h1 { margin-bottom: .8rem; }
.error-content p {
    color: var(--nx-muted);
    max-width: 52ch;
    margin: 0 auto 1.75rem;
}
.error-footer {
    flex: none;
    background: var(--nx-footer-bg);
    border-top: 1px solid var(--nx-chrome-border);
    color: var(--nx-chrome-muted);
    padding-block: 1.1rem;
    font-size: .87rem;
}
.error-footer a { color: var(--nx-chrome-muted); text-decoration: none; transition: color .25s ease; }
.error-footer a:hover { color: var(--nx-brand); }

/* ---------- 21. ENHANCED CARD SURFACES ----------
   CHANGE: in light mode the cards were flat near-white and blended into the
   page background. Every card component now gets a stylish, layered surface:
     - soft diagonal gradient (never flat white)
     - brand-tinted corner glow (top-right radial)
     - brand-tinted border + inner top highlight + tinted drop shadow
   Dark mode keeps its current character — values simply become a subtle
   blue-rich gradient, so those cards still look the way you liked. */

/* Card surface tokens — light theme */
/* Card surface tokens — light theme */
:root {
    /* CHANGE: gradient darkened one more step and box-shadow deepened so
       cards clearly stand out against the light body background */
    --nx-card-grad: linear-gradient(165deg, #f1f4fb 0%, #e7ecf7 48%, #dbe3f2 100%);
    --nx-card-border: rgba(79, 70, 229, .22);
    --nx-card-shadow: inset 0 1px 0 rgba(255, 255, 255, .75),
                      0 14px 34px rgba(30, 41, 82, .16),
                      0 3px 10px rgba(30, 41, 82, .10);
}

/* Card surface tokens — dark theme */
[data-theme="dark"] {
    --nx-card-grad: linear-gradient(165deg, #1a2342 0%, #141b31 55%, #111730 100%);
    --nx-card-border: #2a3554;
    --nx-card-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
                      0 10px 30px rgba(0, 0, 0, .35);
}

/* Apply the enhanced surface to ALL card components at once.
   (Placed last so it overrides the earlier flat `background: var(--nx-surface)`
   rules. The featured pricing card keeps its animated conic border.) */
.nx-card,
.feature-item,
.job-card,
.info-card,
.process-step,
.price-card:not(.featured) {
    position: relative;
    background:
        radial-gradient(120% 90% at 100% 0%, var(--nx-brand-soft) 0%, transparent 46%),
        var(--nx-card-grad);
    border: 1px solid var(--nx-card-border);
    box-shadow: var(--nx-card-shadow);
}

/* Slightly stronger tinted edge on hover (works with existing lift effects) */
.nx-card:hover,
.feature-item:hover,
.job-card:hover,
.info-card:hover {
    border-color: var(--nx-brand);
}

/* ---------- 22. SMOOTH PAGE & JUMP TRANSITIONS (all browsers) ----------
   CHANGE: the Chrome-only cross-document View Transition was replaced with
   a manual leave/enter animation so EVERY browser (Vivaldi, Firefox,
   Safari, Edge) gets the same smooth feel on navbar/footer clicks. */

/* ENTER: main content fades + rises on every page load */
#mainContent { animation: nx-page-enter .5s ease both; }
@keyframes nx-page-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* LEAVE: main.js adds this class just before navigating away */
#mainContent.nx-leave {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity .26s ease, transform .26s ease;
}

/* Jump-link destination: fade-in + rise highlight on the target section */
@keyframes nx-section-in {
    from { opacity: .2; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.svc-highlight { animation: nx-section-in .7s ease both; }

/* Theme toggle keeps its View Transition crossfade */
::view-transition-old(root) { animation: nx-page-out .32s ease both; }
::view-transition-new(root) { animation: nx-page-in .38s ease both; }
@keyframes nx-page-out { to   { opacity: 0; transform: scale(.988); } }
@keyframes nx-page-in  { from { opacity: 0; transform: scale(1.008); } }

/* ---------- 23. LIGHT-MODE VISIBILITY FIXES (chips + eyebrow) ---------- */

/* CHANGE: eyebrow pill is now SOLID brand in light mode — the pale tint was
   invisible on light pages. Dark mode keeps the soft translucent look. */
.eyebrow {
    background: var(--nx-brand);
    color: #fff;
    box-shadow: 0 6px 16px var(--nx-brand-soft);
}
[data-theme="dark"] .eyebrow {
    background: var(--nx-brand-soft);
    color: var(--nx-brand);
    box-shadow: none;
}
/* keep the hero's glassy eyebrow on its dark backdrop (both themes) */
.hero .eyebrow {
    background: rgba(255, 255, 255, .14);
    color: #c7d2fe;
    box-shadow: none;
}

/* CHANGE: jump-link chips now sit on the enhanced card surface with a
   tinted border + shadow, so they clearly stand out on light pages */
.svc-chip {
    background: var(--nx-card-grad);
    border: 1px solid var(--nx-card-border);
    box-shadow: var(--nx-card-shadow);
}
.svc-chip i { color: var(--nx-brand); margin-right: .4rem; }
.svc-chip:hover {
    border-color: var(--nx-brand);
    color: var(--nx-brand);
    transform: translateY(-2px);
}

/* ---------- 24. Contact grid: equal heights — top AND bottom aligned ----------
   CHANGE: the left column no longer uses Bootstrap's .row (its gutter
   paddings pushed the first card down). A custom flex stack makes both
   columns start and end at exactly the same lines. */

/* Columns stretch as flex containers */
#contactGrid > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Left: info-card stack fills the column edge-to-edge */
.contact-info-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;              /* single source of spacing — no gutters */
    margin: 0;
    padding: 0;
}
.contact-info-stack > * {
    flex: 1 1 0;            /* the 4 cards share the height equally */
    display: flex;          /* lets the inner .info-card stretch */
    margin: 0;
    padding: 0;
}
.contact-info-stack .info-card {
    width: 100%;
    height: auto;           /* flex controls height now */
}

/* Right: form card fills the column; submit button pinned to the bottom */
#contactGrid > [class*="col-"] > .nx-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#contactGrid .nx-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#contactGrid .nx-form .btn-nx[type="submit"] { margin-top: auto; }

/* Small screens: stack naturally, no forced stretching */
@media (max-width: 991.98px) {
    #contactGrid > [class*="col-"] { display: block; }
    .contact-info-stack { display: grid; gap: 1rem; }
    .contact-info-stack > * { display: block; flex: none; }
    #contactGrid > [class*="col-"] > .nx-card,
    #contactGrid .nx-form { display: block; flex: none; }
    #contactGrid .nx-form .btn-nx[type="submit"] { margin-top: 0; }
}


/* ---------- FINAL: testimonial dot visibility (both themes) ----------
   CHANGE: higher-specificity override placed at the END of the stylesheet
   so no earlier/leftover .t-dot rule can make the dots invisible again.
   Solid theme-aware colors with clear contrast — no opacity tricks. */
:root {
    --nx-dot-idle: #8b9bc0;   /* slate-blue: clearly visible on light bg */
}
[data-theme="dark"] {
    --nx-dot-idle: #45537c;   /* lighter slate: clearly visible on dark bg */
}

.t-dots .t-dot {
    background: var(--nx-dot-idle) !important;
    opacity: 1 !important;
}
.t-dots .t-dot:hover {
    background: var(--nx-brand) !important;   /* hover feedback */
}
.t-dots .t-dot.active {
    background: var(--nx-brand) !important;   /* purple pill stays as-is */
    width: 26px;
}


/* ---------- 25. Scroll-driven "appear" wipe for sections/containers ----------
   CHANGE: your clip-path appear animation, implemented with the syntax
   errors corrected:
   - end state must be  clip-path: inset(0 0 0 0)   (not "(0,0,0,0)")
   - selector must be a class (.scroll-effect)      (not a bare tag)
   - animation-range uses entry→cover so it also works on TALL sections
     ("contain" only suits elements shorter than the viewport)
   Browsers without scroll-driven animations simply show content normally. */
/* @keyframes nx-appear {
    0% {
        opacity: 0;
        transform: translateY(90px) scale(0.75);
        filter: blur(5px);
    }
    40% {
        /* Holds position briefly while fading in, smoother than 25% *
        opacity: 0.6;
        transform: translateY(60px) scale(0.85);
        filter: blur(3px);
    }
    75% {
        /* Anticipation high point: slightly overshoots the target *
        opacity: 0.9;
        transform: translateY(-8px) scale(1.03);
        filter: blur(1px);
    }
    90% {
        /* Settling down: slightly drops back before resting *
        transform: translateY(2px) scale(0.99);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Optimized animation for Mobile view (Screens under 768px) *
@media (max-width: 767px) {
    @keyframes nx-appear {
        0% {
            opacity: 0;
            /* Reduced vertical travel and cut blur in half *
            transform: translateY(40px) scale(0.85);
            filter: blur(2px);
        }
        40% {
            opacity: 0.6;
            transform: translateY(20px) scale(0.92);
            filter: blur(1px);
        }
        75% {
            opacity: 0.9;
            /* Subtle overshoot for smaller screens *
            transform: translateY(-3px) scale(1.01);
            filter: blur(0);
        }
        90% {
            transform: translateY(1px) scale(1);
            filter: blur(0);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }
} */

/* ---------- Scroll "appear" — ONE definition for ALL viewports ----------
   CHANGE: the old width-based media-query override missed landscape phones
   (they are wider than 767px but very short), so landscape got the heavy
   desktop travel. Travel/overshoot now scale with viewport HEIGHT via
   clamp()+vh — small on landscape phones, medium on tablets/iPads,
   full on tall portrait/desktop screens. No media queries needed. */
@keyframes nx-appear {
    0% {
        opacity: 0;
        /* 10vh travel: ≈39px on a 390px landscape phone, ≈80px portrait,
           capped at 90px on large monitors */
        transform: translateY(clamp(24px, 10vh, 90px)) scale(.88);
        /* filter: blur(3px); */
    }
    40% {
        /* Holds position briefly while fading in */
        opacity: .6;
        transform: translateY(clamp(12px, 5.5vh, 52px)) scale(.94);
        /* filter: blur(2px); */
    }
    75% {
        /* Anticipation overshoot — proportional, never extreme on short screens */
        opacity: .95;
        transform: translateY(clamp(-8px, -1vh, -2px)) scale(1.02);
        /* filter: blur(0); */
    }
    90% {
        /* Settling drop-back before resting */
        opacity: 1;
        transform: translateY(1px) scale(.995);
        /* filter: blur(0); */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        /* filter: blur(0); */
    }
}

/* @supports (animation-timeline: view()) {
    /* Utility: add class="scroll-effect" to ANY element to get the wipe *
    .scroll-effect,
    /* Auto-applied: every page section + interior page hero wipes in on scroll *
    .section,
    .page-hero {
        animation: nx-appear linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
        /* For SHORT blocks (smaller than the viewport) you may prefer:
           animation-range: contain; *
    }
} */

@supports (animation-timeline: view()) {
    /* Utility: add class="scroll-effect" to ANY element to get the effect */
    .scroll-effect,
    /* Auto-applied: every page section + interior page hero animates on scroll */
    .section,
    .page-hero {
        animation: nx-appear linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    /* CHANGE: short landscape screens (phones/iPads rotated) complete the
       reveal earlier, so sections are fully settled by the time they are
       centered in the shallow viewport */
    @media (max-height: 520px) and (orientation: landscape) {
        .scroll-effect,
        .section,
        .page-hero {
            animation-range: entry 0% cover 30%;
        }
    }

    /* Tablets/iPads portrait: slightly earlier settle for the mid-height viewport */
    @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
        .scroll-effect,
        .section,
        .page-hero {
            animation-range: entry 0% cover 35%;
        }
    }
}