/**
 * ============================================================================
 * Prysm Edge — Design System 2025
 * assets/css/design-system-25.css
 *
 * Single-source design token and component library.
 * Consolidates design-system.css, style.css, and page-theme.css.
 * Version: 2.0.0  |  Date: 2026-03-01
 *
 * FONT LOADING — add to every HTML <head>; do NOT @import here:
 * <link rel="preconnect" href="https://fonts.googleapis.com">
 * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 * <link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900
 *   &family=Manrope:wght@300;400;500;600;700;800
 *   &family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
 *
 * SECTIONS
 *   1. CSS Custom Properties (design tokens)
 *   2. Reset & base HTML
 *   3. Base typography  (h1–h6, p, a, lists)
 *   4. Keyframe animations (all pages consolidated)
 *   5. Animation utility classes
 *   6. Layout utilities
 *   7. Typography utilities
 *   8. Spacing utilities
 *   9. Colour utilities
 *  10. Border & shape utilities
 *  11. Effect utilities (shadow, opacity, transition)
 *  12. Responsive utilities
 *  13. Component — Buttons
 *  14. Component — Cards
 *  15. Component — Form inputs
 *  16. Component — Badges & tags
 *  17. Component — Navigation
 *  18. Component — Stats & metrics
 *  19. Component — Hero patterns
 *  20. Component — Testimonials
 *  21. Component — FAQ accordion
 *  22. Component — Hover & lift effects
 *  23. Accessibility
 * ============================================================================
 */


/* ============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================ */

:root {

    /* -------------------------------------------------------------------------
       1A. BRAND COLORS
       Semantic names from design-decisions.md:
         --color-primary    #ea580c  CTAs, buttons, active states
         --color-accent     #f97316  SVG fills, gradients, decorative
         --color-background #ffffff  Page / card backgrounds
         --color-surface    #fafafa  Stat cards, form fields, alternates
         --color-secondary  #171717  Body text, dark section backgrounds
       --------------------------------------------------------------------- */

    /* Semantic role aliases */
    --color-primary:        #ea580c;
    --color-primary-hover:  #c2410c;
    --color-primary-light:  #fb923c;
    --color-accent:         #f97316;
    --color-background:     #ffffff;
    --color-surface:        #fafafa;
    --color-secondary:      #171717;

    /* Full orange palette */
    --color-orange-50:  #fff7ed;
    --color-orange-100: #ffedd5;
    --color-orange-200: #fed7aa;
    --color-orange-400: #fb923c;
    --color-orange-500: #f97316;
    --color-orange-600: #ea580c;
    --color-orange-700: #c2410c;
    --color-orange-900: #7c2d12;

    /* Amber (gradient endpoints, SVG accents) */
    --color-amber-400: #fbbf24;
    --color-amber-500: #f59e0b;

    /* Gold — luxury/UHNW palette (canonical values across all luxury pages) */
    --color-gold-300:   #f0d060;
    --color-gold-400:   #eac155;
    --color-gold-500:   #d4af37;
    --color-gold-600:   #b8922e;
    --color-gold-label: #a08c50;   /* luxury-consultation form label tint */

    /* Neutral gray scale */
    --color-neutral-50:  #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-850: #202020;
    --color-neutral-900: #171717;
    --color-neutral-950: #0a0a0a;

    /* Near-black dark surfaces (dark-theme cards / sections) */
    --color-dark-base:   #080808;
    --color-dark-card:   #0c0c0c;
    --color-dark-raised: #111111;
    --color-dark-subtle: #151515;
    --color-dark-border: #1e1e1e;

    /* Status / semantic */
    --color-success: #22c55e;
    --color-error:   #ef4444;
    --color-warning: #f59e0b;
    --color-info:    #3b82f6;

    /* Special */
    --color-burnt-umber: #23150d;   /* footer CTA gradient — every page */

    /* Text role aliases */
    --color-text-heading:       #171717;
    --color-text-body:          #525252;
    --color-text-muted:         #737373;
    --color-text-placeholder:   #a3a3a3;
    --color-text-on-dark:       #fafaf9;
    --color-text-on-dark-muted: #a3a3a3;

    /* -------------------------------------------------------------------------
       1B. GRADIENTS
       --------------------------------------------------------------------- */

    /* Text gradients — applied via background-clip: text */
    --gradient-text-orange: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --gradient-text-gold:   linear-gradient(135deg, #d4af37 0%, #eac155 100%);
    --gradient-text-dark:   linear-gradient(135deg, #171717 0%, #404040 100%);

    /* Footer CTA — every page */
    --gradient-footer-cta:  linear-gradient(to bottom right, #23150d, #000000);

    /* Brand / button / bento */
    --gradient-orange-brand:  linear-gradient(to right, #f97316, #f59e0b);
    --gradient-bento-accent:  linear-gradient(135deg, #ea580c 0%, #c2410c 100%);

    /* Engineer grid background patterns */
    --gradient-grid-light:
        linear-gradient(rgba(229, 229, 229, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 229, 229, 0.5) 1px, transparent 1px);

    --gradient-grid-dark:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);

    --gradient-grid-orange:
        linear-gradient(rgba(249, 115, 22, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.04) 1px, transparent 1px);

    /* Sector hero photo overlay */
    --gradient-photo-overlay:
        linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.75), rgba(0,0,0,0.4));

    /* Luxury glow (radial, hero sections) */
    --gradient-luxury-glow:
        radial-gradient(ellipse at 65% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 65%);

    /* Orange ambient glow (dark sections) */
    --gradient-orange-ambient:
        radial-gradient(ellipse at 50% -8%, rgba(234, 88, 12, 0.13) 0%, transparent 52%);

    /* -------------------------------------------------------------------------
       1C. TYPOGRAPHY
       --------------------------------------------------------------------- */

    --font-heading: 'Barlow', sans-serif;
    --font-display: 'Barlow', sans-serif;          /* alias */
    --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Type scale */
    --text-xs:   0.875rem;   /* 14px  ← was 12px */
    --text-sm:   1rem;       /* 16px  ← was 14px */
    --text-base: 1.125rem;   /* 18px  ← was 16px */
    --text-lg:   1.25rem;    /* 20px  ← was 18px */
    --text-xl:   1.375rem;   /* 22px  ← was 20px */
    --text-2xl:  1.5rem;     /* 24px */
    --text-3xl:  1.875rem;   /* 30px */
    --text-4xl:  2.25rem;    /* 36px */
    --text-5xl:  3rem;       /* 48px */
    --text-6xl:  3.75rem;    /* 60px */
    --text-7xl:  4.5rem;     /* 72px */
    --text-8xl:  6rem;       /* 96px */

    /* Weights */
    --font-light:     300;
    --font-normal:    400;
    --font-medium:    500;
    --font-semibold:  600;
    --font-bold:      700;
    --font-extrabold: 800;
    --font-black:     900;

    /* Line heights */
    --leading-none:    1;
    --leading-tight:   1.05;
    --leading-snug:    1.25;
    --leading-normal:  1.5;
    --leading-relaxed: 1.625;
    --leading-loose:   2;

    /* Letter spacings */
    --tracking-tighter: -0.05em;
    --tracking-tight:   -0.025em;
    --tracking-normal:  0;
    --tracking-wide:    0.025em;
    --tracking-wider:   0.05em;
    --tracking-widest:  0.1em;
    --tracking-ultra:   0.2em;

    /* -------------------------------------------------------------------------
       1D. SPACING SCALE
       Semantic: --space-xs through --space-2xl (+ extended for sections)
       Numeric:  --space-1 through --space-32 (Tailwind-compatible)
       --------------------------------------------------------------------- */

    /* Semantic */
    --space-xs:   0.25rem;   /*  4px — icon gaps, tiny padding */
    --space-sm:   0.5rem;    /*  8px — tag / badge padding */
    --space-md:   1rem;      /* 16px — form fields, small gaps */
    --space-lg:   1.5rem;    /* 24px — card padding base */
    --space-xl:   2rem;      /* 32px — card padding standard */
    --space-2xl:  3rem;      /* 48px — section padding (mobile) */
    --space-3xl:  4rem;      /* 64px */
    --space-4xl:  5rem;      /* 80px — pt-20 header offset */
    --space-5xl:  6rem;      /* 96px — py-24 section padding */
    --space-6xl:  8rem;      /* 128px — py-32 footer CTA */
    --space-7xl:  10rem;     /* 160px */

    /* Numeric */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;

    /* Layout */
    --container-max:     80rem;    /* 1280px */
    --container-wide:    90rem;    /* 1440px */
    --container-padding: 1.5rem;
    --header-height:     70px;

    /* -------------------------------------------------------------------------
       1E. BORDER RADIUS
       --------------------------------------------------------------------- */

    --radius-none: 0;
    --radius-xs:   0.25rem;    /*  4px */
    --radius-sm:   0.375rem;   /*  6px */
    --radius-md:   0.5rem;     /*  8px */
    --radius-lg:   0.75rem;    /* 12px — most common (buttons, inputs, icon boxes) */
    --radius-xl:   1rem;       /* 16px */
    --radius-2xl:  1.25rem;    /* 20px — tool cards */
    --radius-3xl:  1.5rem;     /* 24px — card-pe, solution cards */
    --radius-4xl:  2rem;       /* 32px — stat cards, project cards */
    --radius-full: 9999px;     /* pills, avatars */

    /* -------------------------------------------------------------------------
       1F. BOX SHADOWS
       --------------------------------------------------------------------- */

    /* Neutral elevation */
    --shadow-sm:    0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg:    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl:   0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Orange glow (primary brand) */
    --shadow-glow-sm: 0 0 8px rgba(249, 115, 22, 0.25);
    --shadow-glow-md: 0 0 20px rgba(249, 115, 22, 0.2);
    --shadow-glow-lg: 0 0 40px rgba(249, 115, 22, 0.25);
    --shadow-glow-xl: 0 20px 50px rgba(249, 115, 22, 0.15);

    /* Gold glow (luxury pages) */
    --shadow-glow-gold-sm: 0 0 15px rgba(212, 175, 55, 0.25);
    --shadow-glow-gold-md: 0 0 30px rgba(212, 175, 55, 0.25);
    --shadow-glow-gold-lg: 0 0 50px rgba(212, 175, 55, 0.35);

    /* Focus rings */
    --shadow-focus-orange: 0 0 0 3px rgba(249, 115, 22, 0.15);
    --shadow-focus-gold:   0 0 0 3px rgba(212, 175, 55, 0.15);
    --shadow-focus-error:  0 0 0 3px rgba(239, 68, 68, 0.1);

    /* -------------------------------------------------------------------------
       1G. TRANSITIONS
       --------------------------------------------------------------------- */

    --transition-fast:   150ms ease;
    --transition-base:   300ms ease;
    --transition-slow:   600ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 300ms cubic-bezier(0.16, 1, 0.3, 1);

    --ease-linear:  linear;
    --ease-in:      cubic-bezier(0.4, 0, 1, 1);
    --ease-out:     cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);

    --duration-75:   75ms;
    --duration-100:  100ms;
    --duration-150:  150ms;
    --duration-200:  200ms;
    --duration-300:  300ms;
    --duration-500:  500ms;
    --duration-700:  700ms;
    --duration-800:  800ms;
    --duration-1000: 1000ms;
    --duration-1500: 1500ms;

    /* -------------------------------------------------------------------------
       1H. Z-INDEX SCALE
       --------------------------------------------------------------------- */

    --z-base:     0;
    --z-raised:   10;
    --z-dropdown: 20;
    --z-sticky:   30;
    --z-fixed:    40;
    --z-modal:    50;
    --z-toast:    60;
    --z-header:   100;
    --z-max:      9999;
}


/* ============================================================================
   2. RESET & BASE HTML
   ============================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-body);
    background-color: var(--color-background);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

footer { margin-bottom: 0 !important; }

img, video, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar              { width: 8px; }
::-webkit-scrollbar-track        { background: var(--color-neutral-100); }
::-webkit-scrollbar-thumb        { background: var(--color-neutral-300); border-radius: var(--radius-md); }
::-webkit-scrollbar-thumb:hover  { background: var(--color-neutral-400); }


/* ============================================================================
   3. BASE TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

/* H1 — hero headlines */
h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: var(--font-normal);
    line-height: 1.05;
}

/* H2 — section headlines */
h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: var(--font-normal);
    line-height: 1.1;
}

/* H3 — card / sub-section titles */
h3 {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    line-height: 1.25;
}

h5 {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
}

h6 {
    font-size: 1rem;
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-normal);
}

p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-body);
}

p + p { margin-top: 1em; }

/* Text links turn orange on hover.
   Buttons (any <a> with horizontal padding or a .btn class) are excluded —
   they define their own hover colours via Tailwind utilities. */
a:not([class*="px-"]):not([class*="btn"]):not([class*="cta"]):not([class*="nav-"]):hover { color: var(--color-primary); }

/* Prose lists (articles, legal pages) */
.prose ul, .prose ol {
    padding-left: 1.5rem;
    line-height: var(--leading-relaxed);
}
.prose ul  { list-style: disc; }
.prose ol  { list-style: decimal; }
.prose li  { margin-bottom: 0.5rem; }
.prose li + li { margin-top: 0.25rem; }

/* Strong / em defaults */
strong { font-weight: var(--font-bold); color: var(--color-text-heading); }
em     { font-style: italic; }

/* Code inline */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-neutral-100);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}


/* ============================================================================
   4. KEYFRAME ANIMATIONS  (all pages consolidated)
   ============================================================================ */

/* --- Entry / reveal --- */

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* aliases used on different pages — all identical behaviour */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-up    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Counter / stat reveal */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Success check pop (careers apply form) */
@keyframes check-pop {
    0%   { transform: scale(0);    opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1);    opacity: 1; }
}

/* Badge / floating chip entrance (Building Intelligence pages) */
@keyframes badge-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Continuous / looping --- */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Variant used by asset-care (larger amplitude) */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* SVG node float (smaller, page-theme) */
@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Smart-technology index bubbles */
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Scroll indicator bounce */
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* Marquee / ticker */
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Lane card tile flash (homepage) */
@keyframes lc-tile-flash {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* --- SVG / graphic animations --- */

@keyframes ringPulse {
    0%   { transform: scale(0.5); opacity: 0.8; stroke-width: 4; }
    100% { transform: scale(2.2); opacity: 0;   stroke-width: 1; }
}

/* Sector page — expanding signal dot */
@keyframes signalPulse {
    0%   { r: 3;  opacity: 0.8; }
    100% { r: 12; opacity: 0; }
}

/* Sector page — building window glow */
@keyframes windowGlow {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* Sector page — building reveal */
@keyframes buildingRise {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes beamFlow {
    0%   { stroke-dashoffset: 40; opacity: 0.4; }
    50%  { opacity: 1; }
    100% { stroke-dashoffset: 0;  opacity: 0.4; }
}

@keyframes dash {
    to { stroke-dashoffset: -20; }
}

@keyframes flowLine {
    to { stroke-dashoffset: -200; }
}

/* Asset-care dashboard SVGs */
@keyframes heartbeat {
    0%, 100% { transform: scaleY(1); }
    10%       { transform: scaleY(1.4); }
    20%       { transform: scaleY(0.6); }
    30%       { transform: scaleY(1.2); }
    40%       { transform: scaleY(0.8); }
    50%       { transform: scaleY(1); }
}

@keyframes gaugeSweep {
    0%   { stroke-dashoffset: 345; }
    50%  { stroke-dashoffset: 18; }
    100% { stroke-dashoffset: 345; }
}

@keyframes alertPulse {
    0%, 100% { opacity: 0.25; }
    50%       { opacity: 1; }
}

@keyframes dataStream {
    from { stroke-dashoffset: 24; }
    to   { stroke-dashoffset: 0; }
}

@keyframes statusBlink {
    0%, 100% { fill: #22c55e; }
    50%       { fill: #86efac; }
}

/* --- Bars & loaders --- */

@keyframes fillBar  { to { transform: scaleX(1); } }
@keyframes barGrow  { from { width: 0; } to { width: var(--bar-width, 100%); } }
@keyframes fluctuate { 0% { transform: scaleY(1); } 100% { transform: scaleY(0.7); } }

/* --- Pulse (opacity) --- */

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1; }
}


/* ============================================================================
   5. ANIMATION UTILITY CLASSES
   ============================================================================ */

/* Scroll-reveal (IntersectionObserver adds .visible) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-800) var(--ease-out),
                transform var(--duration-800) var(--ease-out);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Animation-delay utilities (for CSS-driven entrance, not transition) */
.anim-delay-100 { animation-delay: 0.1s; }
.anim-delay-200 { animation-delay: 0.2s; }
.anim-delay-300 { animation-delay: 0.3s; }
.anim-delay-400 { animation-delay: 0.4s; }
.anim-delay-600 { animation-delay: 0.6s; }
.anim-delay-900 { animation-delay: 0.9s; }
.anim-delay-1200 { animation-delay: 1.2s; }

/* Hero slide-ins */
.slide-in-left {
    animation: slideInLeft var(--duration-800) var(--ease-in-out) forwards;
}
.slide-in-right {
    animation: slideInRight var(--duration-800) var(--ease-in-out) 0.3s forwards;
    opacity: 0;
}

/* Floating hero visuals */
.animate-float {
    animation: float 4s ease-in-out infinite;
}
.animate-float-slow   { animation: float 8s ease-in-out infinite; }
.animate-float-medium { animation: float 5s ease-in-out infinite; }

/* Generic fade-in (CSS-animation driven, plays on page load) */
.animate-fade-in,
.fade-in {
    animation: fadeInSlide var(--duration-700) var(--ease-spring) forwards;
    opacity: 0;
}

/* Stat bar grow */
.bar-animate {
    animation: barGrow var(--duration-1500) var(--ease-in-out) forwards;
    width: 0;
}

/* Marquee */
.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Pulsing dot (status indicators) */
.animate-pulse {
    animation: pulse 2s var(--ease-in-out) infinite;
}

/* SVG helpers */
.pulse-ring {
    fill: none;
    stroke: var(--color-accent);
    animation: ringPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.network-node {
    fill: white;
    stroke: #d1d1d1;
    stroke-width: 2.5;
    transition: all var(--duration-300) var(--ease-in-out);
    animation: nodeFloat 3s ease-in-out infinite;
}
.network-node.hub {
    fill: var(--color-accent);
    stroke: var(--color-primary);
    stroke-width: 3;
    animation: none;
}

.node-beam {
    stroke: var(--color-accent);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    opacity: 0.35;
    transition: opacity var(--duration-300);
}


/* ============================================================================
   6. LAYOUT UTILITIES
   ============================================================================ */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.container-wide {
    max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Display */
.block         { display: block; }
.inline-block  { display: inline-block; }
.inline-flex   { display: inline-flex; }
.inline        { display: inline; }
.hidden        { display: none; }
.flex          { display: flex; }
.grid          { display: grid; }

/* Flex direction */
.flex-col   { flex-direction: column; }
.flex-row   { flex-direction: row; }
.flex-wrap  { flex-wrap: wrap; }

/* Flex sizing */
.flex-1        { flex: 1 1 0%; }
.flex-auto     { flex: 1 1 auto; }
.flex-none     { flex: none; }
.flex-grow     { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink   { flex-shrink: 1; }

/* Align & justify */
.items-start    { align-items: flex-start; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.items-stretch  { align-items: stretch; }
.justify-start  { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }
.self-start     { align-self: flex-start; }
.self-center    { align-self: center; }
.self-end       { align-self: flex-end; }

/* Gap */
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-5  { gap: var(--space-5); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-x-4  { column-gap: var(--space-4); }
.gap-x-6  { column-gap: var(--space-6); }
.gap-x-12 { column-gap: var(--space-12); }
.gap-y-4  { row-gap: var(--space-4); }
.gap-y-6  { row-gap: var(--space-6); }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-8  { grid-column: span 8; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }

/* Sizing */
.w-full     { width: 100%; }
.w-fit      { width: fit-content; }
.w-screen   { width: 100vw; }
.h-full     { height: 100%; }
.h-screen   { height: 100vh; }
.min-h-screen { min-height: 100vh; }

.max-w-sm   { max-width: 24rem; }
.max-w-md   { max-width: 28rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }
.max-w-7xl  { max-width: 80rem; }
.mx-auto    { margin-left: auto; margin-right: auto; }

/* Overflow */
.overflow-hidden   { overflow: hidden; }
.overflow-auto     { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* Z-index */
.z-0  { z-index: var(--z-base); }
.z-10 { z-index: var(--z-raised); }
.z-20 { z-index: var(--z-dropdown); }
.z-30 { z-index: var(--z-sticky); }
.z-40 { z-index: var(--z-fixed); }
.z-50 { z-index: var(--z-modal); }


/* ============================================================================
   7. TYPOGRAPHY UTILITIES
   ============================================================================ */

.font-heading { font-family: var(--font-heading); }
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }
.text-6xl  { font-size: var(--text-6xl); }
.text-7xl  { font-size: var(--text-7xl); }
.text-8xl  { font-size: var(--text-8xl); }

.font-light     { font-weight: var(--font-light); }
.font-normal    { font-weight: var(--font-normal); }
.font-medium    { font-weight: var(--font-medium); }
.font-semibold  { font-weight: var(--font-semibold); }
.font-bold      { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.font-black     { font-weight: var(--font-black); }

.leading-none    { line-height: var(--leading-none); }
.leading-tight   { line-height: var(--leading-tight); }
.leading-snug    { line-height: var(--leading-snug); }
.leading-normal  { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose   { line-height: var(--leading-loose); }

.tracking-tighter { letter-spacing: var(--tracking-tighter); }
.tracking-tight   { letter-spacing: var(--tracking-tight); }
.tracking-normal  { letter-spacing: var(--tracking-normal); }
.tracking-wide    { letter-spacing: var(--tracking-wide); }
.tracking-wider   { letter-spacing: var(--tracking-wider); }
.tracking-widest  { letter-spacing: var(--tracking-widest); }
.tracking-ultra   { letter-spacing: var(--tracking-ultra); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.uppercase   { text-transform: uppercase; }
.lowercase   { text-transform: lowercase; }
.capitalize  { text-transform: capitalize; }
.normal-case { text-transform: none; }

.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Text gradient utilities (background-clip technique) */
.text-gradient {
    background: var(--gradient-text-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-orange {
    background: var(--gradient-text-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-gold {
    background: var(--gradient-text-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================================================
   8. SPACING UTILITIES
   ============================================================================ */

/* Padding */
.p-2  { padding: var(--space-2); }
.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }

.px-3  { padding-left: var(--space-3);  padding-right: var(--space-3); }
.px-4  { padding-left: var(--space-4);  padding-right: var(--space-4); }
.px-6  { padding-left: var(--space-6);  padding-right: var(--space-6); }
.px-8  { padding-left: var(--space-8);  padding-right: var(--space-8); }

.py-1  { padding-top: var(--space-1);   padding-bottom: var(--space-1); }
.py-2  { padding-top: var(--space-2);   padding-bottom: var(--space-2); }
.py-3  { padding-top: var(--space-3);   padding-bottom: var(--space-3); }
.py-4  { padding-top: var(--space-4);   padding-bottom: var(--space-4); }
.py-6  { padding-top: var(--space-6);   padding-bottom: var(--space-6); }
.py-12 { padding-top: var(--space-12);  padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16);  padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20);  padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24);  padding-bottom: var(--space-24); }
.py-28 { padding-top: var(--space-28);  padding-bottom: var(--space-28); }
.py-32 { padding-top: var(--space-32);  padding-bottom: var(--space-32); }

.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }
.pb-4  { padding-bottom: var(--space-4); }

/* Margin */
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-5  { margin-bottom: var(--space-5); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-14 { margin-bottom: var(--space-14); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-auto { margin-top: auto; }

/* Section spacing helper */
.section-padding {
    padding: var(--space-5xl) var(--container-padding);
}


/* ============================================================================
   9. COLOUR UTILITIES
   ============================================================================ */

/* Backgrounds */
.bg-white       { background-color: #ffffff; }
.bg-black       { background-color: #000000; }
.bg-surface     { background-color: var(--color-surface); }
.bg-background  { background-color: var(--color-background); }
.bg-neutral-50  { background-color: var(--color-neutral-50); }
.bg-neutral-100 { background-color: var(--color-neutral-100); }
.bg-neutral-200 { background-color: var(--color-neutral-200); }
.bg-neutral-900 { background-color: var(--color-neutral-900); }
.bg-neutral-950 { background-color: var(--color-neutral-950); }
.bg-dark-base   { background-color: var(--color-dark-base); }
.bg-dark-card   { background-color: var(--color-dark-card); }
.bg-orange-50   { background-color: var(--color-orange-50); }
.bg-orange-100  { background-color: var(--color-orange-100); }
.bg-orange-600  { background-color: var(--color-primary); }
.bg-primary     { background-color: var(--color-primary); }
.bg-footer-cta  { background: var(--gradient-footer-cta); }

/* Text colours */
.text-white       { color: #ffffff; }
.text-black       { color: #000000; }
.text-primary     { color: var(--color-primary); }
.text-accent      { color: var(--color-accent); }
.text-heading     { color: var(--color-text-heading); }
.text-body        { color: var(--color-text-body); }
.text-muted       { color: var(--color-text-muted); }
.text-placeholder { color: var(--color-text-placeholder); }
.text-on-dark     { color: var(--color-text-on-dark); }
.text-neutral-300 { color: var(--color-neutral-300); }
.text-neutral-400 { color: var(--color-neutral-400); }
.text-neutral-500 { color: var(--color-neutral-500); }
.text-neutral-600 { color: var(--color-neutral-600); }
.text-neutral-700 { color: var(--color-neutral-700); }
.text-neutral-900 { color: var(--color-neutral-900); }
.text-orange-500  { color: var(--color-orange-500); }
.text-orange-600  { color: var(--color-primary); }
.text-gold        { color: var(--color-gold-500); }
.text-success     { color: var(--color-success); }
.text-error       { color: var(--color-error); }

/* Border colours */
.border-neutral-100 { border-color: var(--color-neutral-100); }
.border-neutral-200 { border-color: var(--color-neutral-200); }
.border-neutral-700 { border-color: var(--color-neutral-700); }
.border-primary     { border-color: var(--color-primary); }
.border-dark        { border-color: var(--color-dark-border); }


/* ============================================================================
   10. BORDER & SHAPE UTILITIES
   ============================================================================ */

.border    { border: 1px solid var(--color-neutral-200); }
.border-t  { border-top: 1px solid var(--color-neutral-200); }
.border-b  { border-bottom: 1px solid var(--color-neutral-200); }
.border-y  { border-top: 1px solid var(--color-neutral-200); border-bottom: 1px solid var(--color-neutral-200); }

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-lg); }    /* Tailwind rounded-xl = 0.75rem */
.rounded-2xl  { border-radius: var(--radius-xl); }
.rounded-3xl  { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }


/* ============================================================================
   11. EFFECT UTILITIES
   ============================================================================ */

/* Opacity */
.opacity-0   { opacity: 0; }
.opacity-30  { opacity: 0.3; }
.opacity-50  { opacity: 0.5; }
.opacity-60  { opacity: 0.6; }
.opacity-100 { opacity: 1; }

/* Shadows */
.shadow-sm  { box-shadow: var(--shadow-sm); }
.shadow-md  { box-shadow: var(--shadow-md); }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.shadow-xl  { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-glow    { box-shadow: var(--shadow-glow-md); }
.shadow-glow-lg { box-shadow: var(--shadow-glow-xl); }

/* Transitions */
.transition-all       { transition: all var(--transition-base); }
.transition-colors    { transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }
.transition-opacity   { transition: opacity var(--transition-base); }

/* Filters */
.grayscale    { filter: grayscale(1); }
.grayscale-50 { filter: grayscale(0.5); }

/* Pointer */
.pointer-events-none { pointer-events: none; }
.cursor-pointer      { cursor: pointer; }

/* User select */
.select-none { user-select: none; }

/* Object fit */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.aspect-video   { aspect-ratio: 16 / 9; }
.aspect-square  { aspect-ratio: 1 / 1; }

/* Backdrop blur */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur    { backdrop-filter: blur(12px); }

/* Scrollbar hide */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Screen-reader only */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}


/* ============================================================================
   12. RESPONSIVE UTILITIES
   Key breakpoints: sm 640px | md 768px | lg 1024px | xl 1280px
   ============================================================================ */

@media (min-width: 640px) {
    .sm\:flex-row       { flex-direction: row; }
    .sm\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:text-4xl       { font-size: var(--text-4xl); }
}

@media (min-width: 768px) {
    .md\:flex-row       { flex-direction: row; }
    .md\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-4xl       { font-size: var(--text-4xl); }
    .md\:text-5xl       { font-size: var(--text-5xl); }
    .md\:block          { display: block; }
    .md\:hidden         { display: none; }
}

@media (min-width: 1024px) {
    .lg\:flex           { display: flex; }
    .lg\:hidden         { display: none; }
    .lg\:block          { display: block; }
    .lg\:flex-row       { flex-direction: row; }
    .lg\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-4     { grid-column: span 4; }
    .lg\:col-span-8     { grid-column: span 8; }
    .lg\:text-5xl       { font-size: var(--text-5xl); }
    .lg\:text-6xl       { font-size: var(--text-6xl); }
    .lg\:text-7xl       { font-size: var(--text-7xl); }
    .lg\:py-24          { padding-top: var(--space-24); padding-bottom: var(--space-24); }
    .lg\:px-12          { padding-left: var(--space-12); padding-right: var(--space-12); }
    .lg\:sticky         { position: sticky; }
    .lg\:top-28         { top: 7rem; }
    .section-padding    { padding: var(--space-5xl) var(--space-6); }
}

/* Group hover — enables .group:hover .group-hover\:* patterns */
.group:hover .group-hover\:translate-x-1   { transform: translateX(0.25rem); }
.group:hover .group-hover\:translate-y-0\.5 { transform: translateY(0.125rem); }
.group:hover .group-hover\:translate-y-1   { transform: translateY(0.25rem); }


/* ============================================================================
   13. COMPONENT — BUTTONS
   ============================================================================

   Naming convention:
     .cta             – shared base (layout, font, transition, radius)
     .cta-{variant}   – colour / background scheme
     .cta-{size}      – padding & font-size override (default = lg)
     .btn-submit      – form-submit specific
     .nav-cta-*       – header / mega-menu specific

   Size tokens:
     lg  (default) — px-8 py-4  text-[15px] font-semibold
     md            — px-6 py-3.5 text-sm    font-bold
     sm            — px-6 py-3   text-sm    font-bold
     xs            — px-6 py-2.5 text-sm    font-bold
   ============================================================================ */


/* ── 13a. CTA base ──────────────────────────────────────────────────────── */

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;                             /* 8px */
    padding: 1rem 2rem;                      /* py-4 px-8  (default = lg) */
    font-family: var(--font-body);
    font-size: 15px;                         /* text-[15px] */
    font-weight: 600;                        /* font-semibold */
    line-height: 1;
    border-radius: 0.75rem;                  /* rounded-xl */
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.cta:hover { transform: translateY(-2px); }


/* ── 13b. CTA sizes ─────────────────────────────────────────────────────── */

.cta-md {
    padding: 0.875rem 1.5rem;               /* py-3.5 px-6 */
    font-size: 0.875rem;                    /* text-sm */
    font-weight: 700;                       /* font-bold */
}
.cta-sm {
    padding: 0.75rem 1.5rem;                /* py-3 px-6 */
    font-size: 0.875rem;
    font-weight: 700;
}
.cta-xs {
    padding: 0.625rem 1.5rem;               /* py-2.5 px-6 */
    font-size: 0.875rem;
    font-weight: 700;
}


/* ── 13c. CTA variants — standard palette ───────────────────────────────── */

/* Orange primary — solid orange fill → black bg on hover */
.cta-orange {
    background-color: #ea580c;               /* orange-600 */
    color: white;
    box-shadow: 0 10px 15px -3px rgba(234,88,12,0.15);
}
.cta-orange:hover {
    background-color: #171717;               /* neutral-900 */
    color: white;
}

/* Dark → orange — neutral-900 flips to orange on hover */
.cta-dark {
    background-color: #171717;               /* neutral-900 */
    color: white;
    box-shadow: 0 20px 25px -5px rgba(23,23,23,0.10),
                0 8px 10px -6px rgba(23,23,23,0.10);
}
.cta-dark:hover {
    background-color: #ea580c;               /* orange-600 */
    color: white;
}

/* White secondary — white → orange bg, white text on hover */
.cta-white {
    background-color: white;
    border: 1px solid #e5e5e5;               /* neutral-200 */
    color: #171717;                          /* neutral-900 */
}
.cta-white:hover {
    background-color: #ea580c;               /* orange-600 */
    border-color: #ea580c;
    color: white;
}

/* Outline — white bg → orange bg, white text on hover */
.cta-outline {
    background-color: white;
    border: 1px solid #e5e5e5;               /* neutral-200 */
    color: #404040;                          /* neutral-700 */
}
.cta-outline:hover {
    background-color: #ea580c;               /* orange-600 */
    border-color: #ea580c;
    color: white;
}

/* Ghost — semi-transparent, for dark backgrounds */
.cta-ghost {
    background-color: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.20);
    color: white;
}
.cta-ghost:hover {
    background-color: rgba(255,255,255,0.20);
    color: white;
}

/* White flip — white bg → orange on hover (used on dark sections) */
.cta-white-flip {
    background-color: white;
    color: #171717;                          /* neutral-900 */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.cta-white-flip:hover {
    background-color: #ea580c;               /* orange-600 */
    color: white;
    box-shadow: 0 10px 15px -3px rgba(234,88,12,0.25);
}


/* ── 13d. CTA variants — luxury / gold palette ─────────────────────────── */

/* Gold primary — gradient fill → black bg, gold text on hover */
.cta-gold {
    background: linear-gradient(135deg, #d4af37 0%, #eac155 100%);
    color: #171717;                          /* neutral-900 */
    font-weight: 700;
    box-shadow: 0 20px 25px -5px rgba(212,175,55,0.25);
}
.cta-gold:hover {
    background: #171717;                     /* neutral-900 */
    color: #d4af37;                          /* gold */
    box-shadow: 0 0 30px rgba(212,175,55,0.4);
}
.cta-gold.cta-gold-lg:hover {
    box-shadow: 0 0 40px rgba(212,175,55,0.5);
}

/* Gold outline — white bg, gold border → black bg, gold text on hover */
.cta-gold-outline {
    background-color: white;
    border: 1px solid rgba(212,175,55,0.40);
    color: #404040;                          /* neutral-700 */
}
.cta-gold-outline:hover {
    background-color: #171717;               /* neutral-900 */
    border-color: #171717;
    color: #d4af37;                          /* gold */
}


/* ── 13e. Form submit button ────────────────────────────────────────────── */

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;               /* py-3.5 px-6 */
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    background-color: #ea580c;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(234,88,12,0.30);
    transition: all 0.3s ease;
}
.btn-submit:hover {
    background-color: #171717;               /* neutral-900 */
    color: white;
    transform: translateY(-1px);
}


/* ── 13f. Header / navigation CTAs ──────────────────────────────────────── */

/* Main "Book an Audit" header button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;               /* py-2.5 px-6 */
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    background-color: #ea580c;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.nav-cta:hover {
    background-color: #171717;               /* neutral-900 */
    color: white;
}

/* Mega-menu "View Section" buttons */
.nav-mega-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    padding: 0.625rem 0;                    /* py-2.5 */
    font-size: 0.75rem;                     /* text-xs */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;                 /* tracking-wider */
    border-radius: 0.5rem;                  /* rounded-lg */
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #f5f5f5;              /* neutral-100 */
    color: #404040;                         /* neutral-700 */
}
.nav-mega-cta:hover {
    background-color: #ea580c;
    color: white;
}

/* Mega-menu luxury variant */
.nav-mega-cta-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    padding: 0.625rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    background-color: rgba(212,175,55,0.10);
    color: #d4af37;
}
.nav-mega-cta-gold:hover {
    background-color: #171717;               /* neutral-900 */
    color: #d4af37;                          /* gold */
}

/* Mega-menu Asset-Care variant (white bg with border) */
.nav-mega-cta-bordered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    padding: 0.625rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: white;
    color: #404040;
    border: 1px solid #e5e5e5;
}
.nav-mega-cta-bordered:hover {
    background-color: #ea580c;
    color: white;
    border-color: #ea580c;
}


/* ── 13g. Legacy .btn classes (kept for backwards compat) ───────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-base);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-xl), 0 0 0 0 rgba(249, 115, 22, 0.2);
}
.btn-primary:hover {
    background-color: #171717;               /* neutral-900 */
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

.btn-secondary {
    background-color: white;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-outline-orange {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px var(--space-8);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-outline-orange:hover {
    background: var(--color-primary);
    color: white;
}

.btn-icon {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
}
.btn-icon:hover { transform: none; }


/* ── 13h. Safety net — preserve button text colour on hover ─────────────
   Catches any remaining inline-Tailwind buttons that haven't been migrated.
   :where() keeps specificity at 0-0-1-0 so explicit hover classes still win.
   ─────────────────────────────────────────────────────────────────────────── */
:where(a[class*="text-white"][class*="px-"]):hover { color: white; }
:where(a[class*="text-neutral-900"][class*="px-"]):hover { color: #171717; }
:where(a[class*="text-neutral-700"][class*="px-"]):hover { color: #404040; }
:where(a[class*="text-neutral-300"][class*="px-"]):hover { color: #d4d4d4; }
:where(a[class*="text-neutral-400"][class*="px-"]):hover { color: #a3a3a3; }


/* ============================================================================
   14. COMPONENT — CARDS
   ============================================================================ */

/* Primary card (card-pe) — white, rounded, subtle border */
.card-pe {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    transition: all var(--duration-300) var(--ease-in-out);
}
.card-pe:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    transform: translateY(-4px);
}

/* Dark card (dark sections, solution cards) */
.card-dark {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    color: white;
    transition: all var(--duration-300) var(--ease-in-out);
}
.card-dark:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow-glow-xl);
}

/* Gold card (luxury pages) */
.card-gold {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-2xl);
    transition: all var(--duration-300) var(--ease-in-out);
}
.card-gold:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: var(--shadow-glow-gold-md);
    transform: translateY(-4px);
}

/* Glass card */
.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
}

/* Bento card */
.bento-card {
    background: white;
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-300) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.bento-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.bento-card:hover::before { opacity: 1; }

/* Project card */
.project-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-4xl);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-300) var(--ease-out);
}
.project-card img {
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.6;
    transition: transform var(--duration-700) var(--ease-out);
}
.project-card:hover img { transform: scale(1.1); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--color-neutral-900), rgba(23,23,23,0.4), transparent);
}

/* Insight / blog card */
.insight-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-neutral-200);
    transition: all var(--duration-300) var(--ease-out);
    cursor: pointer;
}
.insight-card:hover { box-shadow: var(--shadow-xl); }
.insight-image {
    aspect-ratio: 16 / 9;
    background: var(--color-neutral-200);
    overflow: hidden;
}
.insight-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--duration-500) var(--ease-out);
}
.insight-card:hover .insight-image img { transform: scale(1.05); }


/* ============================================================================
   15. COMPONENT — FORM INPUTS
   ============================================================================ */

/* Standard input (light forms) */
.form-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--color-secondary);
    font-family: var(--font-body);
    transition: border-color var(--duration-200), box-shadow var(--duration-200);
}
.form-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus-orange);
    background: white;
}
.form-field::placeholder { color: var(--color-text-placeholder); }
.form-field.error {
    border-color: var(--color-error);
    box-shadow: var(--shadow-focus-error);
}

/* Gold-tinted form input (luxury-consultation page) */
.form-field-gold {
    background: #fafaf8;
    border: 1.5px solid #e8e4d9;
    border-radius: var(--radius-lg);
}
.form-field-gold:focus {
    border-color: var(--color-gold-500);
    box-shadow: var(--shadow-focus-gold);
}

/* Dark form input */
.form-input-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    transition: box-shadow var(--duration-200);
}
.form-input-dark::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-input-dark:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5);
}

/* Field label */
.field-label {
    display: block;
    font-size: 10px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-placeholder);
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
}
.field-label-gold { color: var(--color-gold-label); }

/* File upload zone (careers apply) */
.upload-zone {
    border: 2px dashed var(--color-neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: border-color var(--duration-200), background var(--duration-200);
    cursor: pointer;
}
.upload-zone:hover   { border-color: var(--color-primary); background: var(--color-orange-50); }
.upload-zone.has-file { border-color: var(--color-success); background: #f0fdf4; }

/* Multi-slide form system (contact pages) */
.form-slides-outer { overflow: hidden; position: relative; }
.form-slides-track {
    display: flex; width: 200%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-slide { width: 50%; flex-shrink: 0; box-sizing: border-box; }

/* Step progress dots */
.step-dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-neutral-200);
    transition: all var(--duration-300);
}
.step-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: var(--radius-sm);
}

/* Selection chips (diagnostic-assessment) */
.sel-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--color-neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-text-body);
    cursor: pointer;
    transition: all var(--duration-200);
    user-select: none;
}
.sel-chip:hover       { border-color: var(--color-accent); color: var(--color-primary); }
.sel-chip.active      { background: var(--color-orange-50); border-color: var(--color-primary); color: var(--color-primary); }


/* ============================================================================
   16. COMPONENT — BADGES & TAGS
   ============================================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-ultra);
}

.badge-primary {
    background-color: var(--color-orange-50);
    color: var(--color-primary);
    border: 1px solid var(--color-orange-100);
}

.badge-luxury {
    background-color: var(--color-secondary);
    color: var(--color-gold-500);
    border: 1px solid var(--color-gold-500);
    box-shadow: var(--shadow-glow-gold-sm);
}

.badge-category {
    background-color: rgba(249, 115, 22, 0.12);
    color: var(--color-accent);
    backdrop-filter: blur(12px);
    border: none;
}

/* Kicker / eyebrow label */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.25rem 0.75rem;
    background: var(--color-neutral-100);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-muted);
}

/* Brand pill (used in Smart Technology "Our Specialities" sidebars) */
.brand-pill {
    font-size: 0.72rem;
    color: var(--color-neutral-300);
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    padding: 0.2rem 0.6rem;
    border-radius: 0.35rem;
    display: inline-block;
}

/* Mono category tag (tool cards) */
.tool-cat {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4a4a;
    border: 1px solid #222;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-xs);
    display: inline-block;
    width: fit-content;
}


/* ============================================================================
   17. COMPONENT — NAVIGATION
   ============================================================================ */

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-body);
    transition: color var(--transition-fast);
}
.nav-link:hover { color: var(--color-primary); }

.navbar {
    height: var(--header-height);
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
}

/* Inquiry nav cards (contact pages) */
.nav-card {
    transition: all var(--duration-200) var(--ease-in-out);
}
.nav-card:hover {
    transform: translateX(5px);
    border-color: var(--color-primary);
}
.nav-card:hover .nav-icon  { background-color: var(--color-primary); color: white; }
.nav-card:hover .nav-arrow { transform: translateX(4px); color: var(--color-primary); }


/* ============================================================================
   18. COMPONENT — STATS & METRICS
   ============================================================================ */

/* Stat card (light sections — "Real Results" pattern) */
.stat-card {
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-4xl);
    border: 1px solid var(--color-neutral-100);
    transition: all var(--duration-300) var(--ease-in-out);
}
.stat-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}
.stat-icon {
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: inline-flex;
    transition: transform var(--duration-300);
}
.stat-card:hover .stat-icon { transform: scale(1.1); }

.stat-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--font-bold);
    color: var(--color-text-placeholder);
    font-family: var(--font-body);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-normal);
    color: var(--color-text-heading);
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
    margin-bottom: var(--space-2);
}
.stat-label {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-family: var(--font-body);
    margin-bottom: 0.75rem;
}
.stat-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    line-height: var(--leading-relaxed);
}

/* Mobile: tighter padding on small screens */
@media (max-width: 640px) {
    .stat-card { padding: 1.5rem; }
    .stat-card-header { margin-bottom: 1.25rem; }
    .stat-number { font-size: 2.5rem; }
}

/* Compact inline stats (hero rows, no card background) */
.stat-inline-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    line-height: 1.1;
}
.stat-inline-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    margin-top: 0.25rem;
}


/* ============================================================================
   19. COMPONENT — HERO PATTERNS
   ============================================================================ */

/* Engineer grid background — light pages */
.engineer-grid {
    background-image: var(--gradient-grid-light);
    background-size: 40px 40px;
}

/* Engineer grid — dark pages */
.engineer-grid-dark {
    background-image: var(--gradient-grid-dark);
    background-size: 40px 40px;
}

/* Engineer grid — orange-tinted (solutions/index) */
.engineer-grid-orange {
    background-image: var(--gradient-grid-orange);
    background-size: 44px 44px;
}

/* Footer CTA (every page) */
.footer-cta {
    padding: var(--space-6xl) var(--container-padding);
    background: var(--gradient-footer-cta);
}

/* Sector hero photo overlay */
.photo-overlay-l {
    position: absolute; inset: 0;
    background: var(--gradient-photo-overlay);
}

/* Luxury hero radial glow */
.luxury-hero-bg {
    background: var(--gradient-luxury-glow);
}

/* SVG hero container */
.svg-hero-container {
    position: relative;
    width: 100%; height: 100%;
    min-height: 300px;
    display: flex; align-items: center; justify-content: center;
}


/* ============================================================================
   20. COMPONENT — TESTIMONIALS
   ============================================================================ */

.testimonial-card {
    background: white;
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
}

.testimonial-metric {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-2);
}

.testimonial-quote {
    position: relative;
    padding-left: var(--space-6);
    border-left: 4px solid var(--color-primary);
}

.testimonial-avatar {
    width: 3rem; height: 3rem;
    background: var(--gradient-orange-brand);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    flex-shrink: 0;
}


/* ============================================================================
   21. COMPONENT — FAQ ACCORDION
   ============================================================================ */

.faq-item {
    border-bottom: 1px solid var(--color-neutral-100);
    padding-bottom: var(--space-4);
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
}
.faq-question h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
    transition: color var(--transition-fast);
}
.faq-item:hover .faq-question h4 { color: var(--color-primary); }
.faq-toggle {
    color: var(--color-text-placeholder);
    font-size: var(--text-2xl);
    font-weight: var(--font-light);
    transition: transform var(--duration-300) var(--ease-out);
    flex-shrink: 0;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-300) var(--ease-out);
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }


/* ============================================================================
   22. COMPONENT — HOVER & LIFT EFFECTS
   ============================================================================ */

/* Standard hover lift */
.hover-lift {
    transition: all var(--duration-700) var(--ease-in-out);
}
.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.3);
}

/* Subtle card lift (card-pe variant) */
.hover-rise {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-rise:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


/* ============================================================================
   23. ACCESSIBILITY
   ============================================================================ */

/* Focus visible ring */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduced motion — disable all animations */
@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;
    }
}


/* ============================================================================
   24. EXTENDED UTILITIES — added during style consolidation (2026-03-01)
   ============================================================================ */

/* ── Fade-in-up (IntersectionObserver trigger) ─────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

/* CSS-animation-driven version (no JS required) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── Extended animation delays ─────────────────────────────────────────────── */
.delay-700  { animation-delay: 700ms !important; transition-delay: 700ms !important; }
.delay-800  { animation-delay: 800ms !important; transition-delay: 800ms !important; }
.delay-900  { animation-delay: 900ms !important; transition-delay: 900ms !important; }
.delay-1000 { animation-delay: 1000ms !important; transition-delay: 1000ms !important; }

.anim-delay-0  { animation-delay: 0ms; }
.anim-delay-1  { animation-delay: 100ms; }
.anim-delay-2  { animation-delay: 200ms; }
.anim-delay-3  { animation-delay: 300ms; }
.anim-delay-4  { animation-delay: 400ms; }
.anim-delay-5  { animation-delay: 500ms; }
.anim-delay-6  { animation-delay: 600ms; }
.anim-delay-7  { animation-delay: 700ms; }
.anim-delay-8  { animation-delay: 800ms; }

/* ── Stagger helpers (complement .anim-delay-*) ────────────────────────────── */
.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }

/* ── Hover utilities ────────────────────────────────────────────────────────── */
.hover-lift-sm {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-lift-sm:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.hover-lift-lg {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-lift-lg:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
}
.hover-border-orange {
    border: 1px solid transparent;
    transition: border-color var(--transition-base);
}
.hover-border-orange:hover {
    border-color: var(--color-accent);
}

/* Reveal hidden child on hover */
.hover-reveal .hidden-content {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hover-reveal:hover .hidden-content {
    opacity: 1;
    transform: none;
}

/* ── Card shadow ────────────────────────────────────────────────────────────── */
.card-shadow {
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}
.card-shadow:hover {
    box-shadow: var(--shadow-md);
}

/* ── Pill links (tags / chips) ─────────────────────────────────────────────── */
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}
.pill-link:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* ── Grid backgrounds ───────────────────────────────────────────────────────── */
.grid-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}
.grid-bg-dark {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Cursor blink ───────────────────────────────────────────────────────────── */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s step-end infinite;
}

/* ── Slow pulse ─────────────────────────────────────────────────────────────── */
@keyframes pulseSlow {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
.pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

/* ── Background tints ───────────────────────────────────────────────────────── */
.bg-gold-light   { background-color: rgba(212, 175, 55, 0.08); }
.bg-orange-light { background-color: rgba(249, 115, 22, 0.08); }

/* ── Sitemap page ───────────────────────────────────────────────────────────── */
.sitemap-section-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}
.sitemap-subsection {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.sitemap-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}
.sitemap-link:hover { color: var(--color-accent); }
.sitemap-link svg   { flex-shrink: 0; }

/* ── Cube animation ─────────────────────────────────────────────────────────── */
@keyframes cubeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes facePulse {
    0%, 100% { opacity: 0.8; }
    50%       { opacity: 1; }
}

.cube-scene {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.cube-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.cube-unit {
    position: relative;
    width: 28px;
    height: 16px;
    background: var(--color-accent);
    transform: skewY(-20deg);
    animation: cubeFloat 3s ease-in-out infinite, facePulse 2s ease-in-out infinite;
}
.cube-unit::before {
    content: '';
    position: absolute;
    top: -8px; left: 0;
    width: 100%;
    height: 8px;
    background: color-mix(in srgb, var(--color-accent) 80%, white);
    transform: skewX(45deg) translateY(-4px);
}
.cube-unit::after {
    content: '';
    position: absolute;
    top: 0; right: -14px;
    width: 14px;
    height: 100%;
    background: color-mix(in srgb, var(--color-accent) 60%, black);
    transform: skewY(20deg);
}
.cube-group {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

/* ── Legal content typography ───────────────────────────────────────────────── */
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.legal-content li { margin-bottom: 0.375rem; }
.legal-content a  { color: var(--color-accent); text-decoration: underline; }
.legal-content a:hover { color: var(--color-accent-hover); }
.legal-content strong { color: var(--color-text-primary); font-weight: 600; }

.legal-nav-active {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-accent);
    font-weight: 600;
    border-left: 2px solid var(--color-accent);
}
.legal-nav-inactive {
    color: var(--color-text-secondary);
    border-left: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.legal-nav-inactive:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(249, 115, 22, 0.05);
}

/* ── Form validation states ─────────────────────────────────────────────────── */
.form-field.error input,
.form-field.error textarea,
.form-field.error select {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.error-msg {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}
.form-field.error .error-msg { display: block; }

/* ── Upload zone ────────────────────────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(249, 115, 22, 0.04);
}
.upload-zone.has-file {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.04);
}

/* ── Char counter ───────────────────────────────────────────────────────────── */
.char-counter {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
    margin-top: 0.25rem;
}
.char-counter.warn   { color: #f59e0b; }
.char-counter.danger { color: #ef4444; }

/* ── Tool card system ───────────────────────────────────────────────────────── */
.tool-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.tool-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.tool-num {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.tool-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.tool-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.tool-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    flex: 1;
}

/* ── Gold colour utilities (inline-style migration targets) ─────────────────── */
.text-gold { color: #d4af37; }
.bg-gold-tint { background: rgba(212, 175, 55, 0.1); }
.badge-gold-light { background: rgba(212, 175, 55, 0.1); color: #d4af37; }
.border-gold-light { border-color: rgba(212, 175, 55, 0.35); }


/* ============================================================================
   20. CALCULATOR PAGES — shared light-mode skin (ROI aesthetic)
   ============================================================================ */

/* -- Tokens ---------------------------------------------------------------- */
:root {
  --calc-bg:        #f7f6f3;
  --calc-surface:   #ffffff;
  --calc-border:    #e5e1da;
  --calc-border-lt: #eeebe5;
  --calc-text:      #18160f;
  --calc-mid:       #6b6560;
  --calc-muted:     #a09b94;
  --calc-accent:    #c94b00;
  --calc-accent-bg: #fff4ee;
  --calc-accent-bd: #f8c9ae;
}

/* -- Page background ------------------------------------------------------ */
.calc-page { background: var(--calc-bg); }

/* -- Hero banner ---------------------------------------------------------- */
.calc-hero {
  background: #fff;
  border-bottom: 1.5px solid var(--calc-border);
}
.calc-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--calc-mid); text-decoration: none;
  transition: color .15s; margin-bottom: 22px;
}
.calc-back-link:hover { color: var(--calc-accent); }
.calc-badge {
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--calc-accent); margin-bottom: 12px;
}

/* -- Card shell ----------------------------------------------------------- */
.calc-card {
  background: var(--calc-surface);
  border: 1.5px solid var(--calc-border);
  border-radius: 16px;
  padding: 32px;
}

/* -- Inputs (overrides dark .calc-input from old templates) --------------- */
.calc-page .calc-input,
.calc-page select.calc-input {
  width: 100%;
  padding: 12px 15px;
  background: var(--calc-bg);
  border: 1.5px solid var(--calc-border);
  border-radius: 9px;
  color: var(--calc-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.calc-page .calc-input:focus {
  outline: none;
  border-color: var(--calc-accent);
  box-shadow: 0 0 0 3px rgba(201,75,0,.09);
  background: #fff;
}
.calc-page .calc-input::placeholder { color: var(--calc-muted); }

/* Flex-child override: fixed-width selects inside flex rows */
.calc-page .calc-input.flex-shrink-0 { width: auto; }
.calc-page .calc-input.flex-1 { min-width: 0; }

/* -- Labels --------------------------------------------------------------- */
.calc-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--calc-mid); margin-bottom: 7px;
  font-family: 'JetBrains Mono', monospace;
}

/* -- Buttons -------------------------------------------------------------- */
.calc-btn-primary {
  background: var(--calc-text); color: #fff; border: none;
  padding: 14px 32px; border-radius: 9px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .1s;
  display: inline-flex; align-items: center; gap: 8px;
}
.calc-btn-primary:hover { opacity: .82; transform: translateY(-1px); }
.calc-btn-reset {
  background: transparent; color: var(--calc-mid);
  border: 1.5px solid var(--calc-border);
  padding: 14px 22px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.calc-btn-reset:hover { border-color: var(--calc-mid); color: var(--calc-text); }

/* -- Result metric tiles -------------------------------------------------- */
.calc-metric {
  background: var(--calc-bg);
  border: 1.5px solid var(--calc-border-lt);
  border-radius: 11px; padding: 18px 20px;
}
.calc-metric.accent {
  background: var(--calc-accent-bg);
  border-color: var(--calc-accent-bd);
}
.calc-metric-label {
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--calc-muted); margin-bottom: 8px;
}
.calc-metric-value {
  font-size: 28px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--calc-text); line-height: 1;
}
.calc-metric-value.sm { font-size: 21px; }
.calc-metric-value.accent-color { color: var(--calc-accent); }

/* -- Side panel ----------------------------------------------------------- */
.calc-panel {
  background: var(--calc-surface);
  border: 1.5px solid var(--calc-border);
  border-radius: 16px; padding: 28px;
  box-sizing: border-box;
}
.calc-panel-label {
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--calc-muted); margin-bottom: 14px;
}

/* -- Reference cards (formulas / benchmarks) ------------------------------ */
.calc-ref-card {
  background: var(--calc-bg);
  border: 1.5px solid var(--calc-border-lt);
  border-radius: 8px; padding: 12px;
}
.calc-ref-title {
  font-size: 11px; color: var(--calc-mid); margin-bottom: 4px;
}
.calc-ref-value {
  font-size: 11px; color: var(--calc-accent);
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.calc-ref-card code {
  font-size: 11px; color: var(--calc-accent);
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}

/* -- Threshold / status badges -------------------------------------------- */
.calc-threshold {
  display: flex; align-items: center; gap: 12px;
  background: var(--calc-bg);
  border: 1.5px solid var(--calc-border-lt);
  border-radius: 8px; padding: 12px;
}
.calc-threshold-good  { border-left: 3px solid #16a34a; }
.calc-threshold-fair  { border-left: 3px solid #ca8a04; }
.calc-threshold-poor  { border-left: 3px solid #dc2626; }

/* -- Unit converter tabs -------------------------------------------------- */
.calc-page .conv-tab { transition: all 0.2s; border-bottom: 2px solid transparent; }
.calc-page .conv-tab.active { color: var(--calc-accent); border-bottom-color: var(--calc-accent); }
.calc-page .conv-tab:not(.active):hover { color: var(--calc-text); border-bottom-color: var(--calc-border); }
.calc-page .conv-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--calc-border-lt);
}
.calc-page .conv-result-row:last-child { border-bottom: none; }
.calc-page .conv-result-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 700; color: var(--calc-text);
}
.calc-page .conv-result-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--calc-muted);
}

/* -- Range slider (light mode) -------------------------------------------- */
.calc-page input[type="range"] { accent-color: var(--calc-accent); }
