/* ==========================================================================
   APEX-256 MODERN INSTITUTIONAL LIGHT THEME & MOBILE-FIRST STYLESHEET
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-page: #F8FAFC;            /* Subtle slate-white canvas */
    --bg-card: #FFFFFF;            /* Pure white card surface */
    --bg-subtle: #F1F5F9;          /* Neutral gray highlight */
    --border-subtle: #E2E8F0;      /* Crisp hairline border */
    --border-card: #CBD5E1;        /* Subtle boundary */
    --border-focus: #2563EB;       /* Active input ring */

    /* High-contrast accessible typography */
    --text-title: #0F172A;         /* Deep slate navy (14:1 contrast on white) */
    --text-body: #334155;          /* Crisp charcoal slate (9:1 contrast) */
    --text-muted: #475569;         /* Meta and secondary text (6.2:1 contrast on subtle bg) */

    /* Professional Accents */
    --accent-primary: #2563EB;     /* Enterprise tech cobalt */
    --accent-hover: #1D4ED8;
    --accent-light: #EFF6FF;
    --accent-emerald: #047857;     /* Institutional emerald */
    --accent-emerald-bg: #ECFDF5;
    --accent-emerald-border: #A7F3D0;
    --accent-red: #DC2626;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-drawer: 0 12px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* --- GLOBAL RESETS & IMAGE CONSTRAINTS --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* CRITICAL: Guarantee images NEVER blow up on mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: var(--text-title);
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
}

.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    color: var(--text-title);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.65;
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Links inside body text must be underlined to be distinguishable (WCAG 1.4.1) */
p a,
li a,
.legal-body a,
.card-desc a,
.bio-content a,
.footer-tagline a,
.direct-email-note a,
.legal-contact-note a {
    text-decoration: underline;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 46px;
    border: none;
}
.btn-primary {
    background-color: var(--accent-primary);
    color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-title) !important;
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--border-card);
    text-decoration: none;
}
.btn-sm {
    min-height: 36px;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   PERSISTENT TRANSLUCENT HEADER & BURGER STACK NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-header);
    transition: opacity 0.25s ease, background-color 0.25s ease;
}

/* SCROLL FADING: Fade header down while actively scrolling */
body.is-scrolling .site-header {
    opacity: 0.25;
    pointer-events: none;
}
body.is-scrolling .return-to-top-btn {
    opacity: 0.2;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-title);
    line-height: 1.1;
}
.logo-sub {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

/* Desktop navigation links */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.desktop-nav a {
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.35rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.desktop-nav a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    text-decoration: none;
}
.desktop-nav a.active,
.desktop-nav a[aria-current="page"] {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    font-weight: 700;
}

@media (max-width: 1040px) {
    .desktop-nav {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0; /* CRITICAL: Never push actions off screen */
}

.patent-badge {
    background: var(--accent-emerald-bg);
    border: 1px solid var(--accent-emerald-border);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   UNIVERSAL BURGER STACK BUTTON & NAVIGATION DRAWER (ALL DEVICES)
   ========================================================================== */
.burger-btn {
    display: flex !important; /* Visible on ALL screen sizes */
    flex-shrink: 0 !important; /* CRITICAL: Never shrink or hide on mobile portrait */
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    padding: 9px 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.burger-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}
.burger-bar {
    width: 100%;
    height: 2.5px;
    background: var(--text-title);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.burger-btn:hover .burger-bar {
    background: var(--accent-primary);
}
.burger-btn[aria-expanded="true"] {
    background: var(--bg-subtle);
    border-color: var(--accent-primary);
}
.burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
    opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Universal Navigation Drawer */
.site-drawer {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.25rem 1.75rem;
    animation: drawerSlide 0.2s ease-out;
}
.site-drawer[hidden] {
    display: none;
}
@keyframes drawerSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.drawer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.drawer-nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-title);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}
.drawer-nav-link:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
    transform: translateX(3px);
}
.drawer-nav-link.active,
.drawer-nav-link[aria-current="page"] {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--accent-primary);
}

body.high-contrast .burger-btn {
    background: #000000 !important;
    border: 2px solid #FFFF00 !important;
}
body.high-contrast .burger-bar {
    background: #FFFF00 !important;
}
body.high-contrast .site-drawer {
    background: #000000 !important;
    border-bottom: 2px solid #FFFF00 !important;
}
body.high-contrast .drawer-nav-link {
    background: #111111 !important;
    border: 1px solid #FFFFFF !important;
    color: #FFFFFF !important;
}
body.high-contrast .drawer-nav-link:hover {
    background: #222222 !important;
    border-color: #FFFF00 !important;
    color: #FFFF00 !important;
}

/* ==========================================================================
   MAIN CONTENT & HERO SECTION
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
    width: 100%;
}

.hero-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.hero-container {
    max-width: 860px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

.hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-title);
    margin-bottom: 1.25rem;
}
.hero-summary {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 2rem;
}
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS, HEADERS, & CARDS
   ========================================================================== */
.section {
    margin-bottom: 4rem;
    scroll-margin-top: 5rem;
}

.section-header {
    margin-bottom: 1.75rem;
    max-width: 800px;
}
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}
.grid-2 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Universal Card Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    border-color: var(--border-card);
    box-shadow: var(--shadow-hover);
}

/* Stat Cards */
.stat-card {
    display: flex;
    flex-direction: column;
}
.card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}
.stat-highlight {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}
.card-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Architecture Card */
.architecture-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.feature-pills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 768px) {
    .feature-pills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.feature-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ip-notice-box {
    background: #FEF9C3;
    border: 1px solid #FDE047;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}
.ip-notice-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #854D0E;
    margin-bottom: 0.4rem;
}
.ip-notice-box p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #713F12;
    margin-bottom: 0;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.table-responsive {
    width: 100%;
    max-inline-size: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    container-type: inline-size;
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9375rem;
    text-align: left;
}
.data-table thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
}
.data-table tbody th {
    position: sticky;
    inset-inline-start: 0;
    background: var(--bg-subtle);
}
.data-table th,
.data-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}
.data-table th {
    background: var(--bg-subtle);
    color: var(--text-title);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tr:hover td {
    background: rgba(241, 245, 249, 0.6);
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-success {
    background: var(--accent-emerald-bg);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
}

/* ==========================================================================
   APPLICATION DOMAIN CARDS
   ========================================================================== */
.app-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .app-card {
        flex-direction: row;
        align-items: flex-start;
    }
}
.app-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.app-specs {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-body);
}
.app-specs li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   CONTACT FORM & CAPTCHA
   ========================================================================== */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hp-wrapper {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-title);
}
.required {
    color: var(--accent-red);
}

.form-group input,
.form-group textarea {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-title);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Captcha Card */
.captcha-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.captcha-prompt-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.captcha-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.captcha-math {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1.15rem;
    font-weight: 700;
}
.captcha-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.15s ease;
}
.captcha-btn:hover {
    border-color: var(--border-card);
    color: var(--text-title);
}
.captcha-field {
    width: 120px;
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-title);
}
.captcha-field:focus {
    border-color: var(--accent-primary);
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.form-feedback {
    font-size: 0.9375rem;
    padding: 0;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
}
.form-feedback.error,
.form-feedback.success {
    padding: 0.85rem 1.25rem;
    max-height: none;
    visibility: visible;
}
.form-feedback.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.form-feedback.success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.form-actions-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.btn-submit {
    min-width: 180px;
}
.direct-email-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
}
.direct-email-note a {
    font-weight: 600;
}

/* ==========================================================================
   FLOATING RETURN-TO-TOP BUTTON
   ========================================================================== */
.return-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 150;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    color: var(--text-title);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease, background 0.15s ease;
}
.return-to-top-btn[hidden] {
    display: none;
}
.return-to-top-btn:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    color: var(--accent-primary);
}

/* ==========================================================================
   ZERO-SURVEILLANCE PRIVACY BANNER
   ========================================================================== */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    z-index: 250;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.privacy-banner[hidden] {
    display: none;
}
.privacy-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.privacy-banner-copy {
    font-size: 0.9375rem;
    color: var(--text-body);
}
.privacy-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.privacy-link {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ==========================================================================
   FOOTER & COMPLIANCE
   ========================================================================== */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 1.25rem 2rem;
    width: 100%;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
.footer-logo-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-title);
    display: block;
}
.footer-logo-sub {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}
.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-body);
    max-width: 380px;
    margin-bottom: 0.5rem;
}
.footer-patent {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 0;
}

.footer-links-col h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-title);
    margin-bottom: 1rem;
}
.footer-links-col a,
.footer-links-col button {
    display: block;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.65rem;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease;
}
.footer-links-col a:hover,
.footer-links-col button:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   LEGAL MODAL DIALOG
   ========================================================================== */
.legal-dialog {
    background: transparent;
    border: none;
    padding: 1.5rem;
    max-width: 720px;
    width: 92vw;
}
.legal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}
.dialog-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.dialog-header {
    background: var(--bg-subtle);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}
.dialog-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: 0.5px;
}
.dialog-close-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 1rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dialog-close-btn:hover {
    color: var(--text-title);
    border-color: var(--border-card);
}
.dialog-body {
    padding: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
}
.dialog-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-body);
    white-space: pre-wrap;
    margin: 0;
}
.dialog-footer {
    background: var(--bg-subtle);
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================================================== */
/* Desktop and Mobile both use universal burger stack */

@media (max-width: 640px) {
    .header-inner {
        padding: 0.65rem 1rem;
    }
    .main-content {
        padding: 1rem 1rem 3rem;
    }
    .hero-section {
        padding: 2.25rem 1.25rem;
        margin-bottom: 2.25rem;
    }
    .card {
        padding: 1.35rem 1.15rem;
    }
    .captcha-card {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-field {
        width: 100%;
    }
    .btn-submit {
        width: 100%;
    }
    .return-to-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .privacy-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .privacy-banner-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   ACCESSIBILITY WIDGET (SECTION 508 / ADA)
   ========================================================================== */
#a11y-widget {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 280;
}
.a11y-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #FFFFFF;
    color: var(--text-title);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.a11y-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.a11y-panel {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 0;
    width: 280px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    z-index: 290;
}
.a11y-panel[hidden] {
    display: none;
}
.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-title);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
}
.a11y-close-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.a11y-close-btn:hover {
    color: var(--text-title);
}
.a11y-section {
    margin-bottom: 1.15rem;
}
.a11y-section:last-child {
    margin-bottom: 0;
}
.a11y-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}
.a11y-font-row {
    display: flex;
    gap: 0.5rem;
}
.a11y-font-btn {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    color: var(--text-body);
    transition: all 0.15s ease;
}
.a11y-font-btn:hover {
    border-color: var(--border-card);
    color: var(--text-title);
}
.a11y-font-btn.active {
    background: var(--accent-primary);
    color: #FFFFFF;
    border-color: var(--accent-primary);
}
.a11y-mode-btn {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.a11y-mode-btn:hover {
    border-color: var(--border-card);
    color: var(--text-title);
}
.a11y-mode-btn.active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* Font scale classes applied to html */
html.font-large {
    font-size: 18px;
}
html.font-xlarge {
    font-size: 20px;
}

/* ==========================================================================
   TRUE HIGH CONTRAST MODE (ADA / SECTION 508 / WCAG AAA)
   ========================================================================== */
body.high-contrast {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

body.high-contrast .site-header {
    background: #000000 !important;
    border-bottom: 2px solid #FFFF00 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

body.high-contrast .site-footer {
    background: #000000 !important;
    border-top: 2px solid #FFFF00 !important;
}

body.high-contrast .logo-title,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4 {
    color: #FFFF00 !important; /* Pure accessible high-contrast yellow */
}

body.high-contrast .card {
    background: #0A0A0A !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
}

body.high-contrast .card:hover {
    border-color: #FFFF00 !important;
}

body.high-contrast p,
body.high-contrast li,
body.high-contrast span:not(.badge):not(.pulse-dot):not(.patent-badge):not(.a11y-label) {
    color: #FFFFFF !important;
}

body.high-contrast a {
    color: #38BDF8 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

body.high-contrast a:hover {
    color: #FFFF00 !important;
}

body.high-contrast .btn-primary {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: 2px solid #FFFF00 !important;
}

body.high-contrast .btn-primary:hover {
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

body.high-contrast .btn-secondary {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast .btn-secondary:hover {
    background-color: #222222 !important;
    border-color: #FFFF00 !important;
    color: #FFFF00 !important;
}

body.high-contrast .hero-section {
    background: #050505 !important;
    border: 2px solid #FFFF00 !important;
}

body.high-contrast .hero-badge {
    background: #000000 !important;
    border: 1px solid #FFFF00 !important;
    color: #FFFF00 !important;
}

body.high-contrast .feature-pill {
    background: #111111 !important;
    border: 1px solid #FFFFFF !important;
    color: #FFFFFF !important;
}

body.high-contrast .feature-pill strong {
    color: #FFFF00 !important;
}

body.high-contrast .ip-notice-box {
    background: #1A1500 !important;
    border: 2px solid #FFFF00 !important;
}
body.high-contrast .ip-notice-title,
body.high-contrast .ip-notice-box p {
    color: #FFFF00 !important;
}

body.high-contrast .data-table th {
    background: #1A1A1A !important;
    color: #FFFF00 !important;
    border-bottom: 2px solid #FFFFFF !important;
}

body.high-contrast .data-table td {
    border-bottom: 1px solid #444444 !important;
    color: #FFFFFF !important;
}

body.high-contrast .badge-success {
    background: #000000 !important;
    color: #00FF66 !important;
    border: 1px solid #00FF66 !important;
}

body.high-contrast .patent-badge {
    background: #000000 !important;
    color: #00FF66 !important;
    border: 1px solid #00FF66 !important;
}

body.high-contrast input,
body.high-contrast textarea {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}
body.high-contrast input:focus,
body.high-contrast textarea:focus {
    border-color: #FFFF00 !important;
    outline: 2px solid #FFFF00 !important;
}

body.high-contrast .captcha-card {
    background: #111111 !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast .captcha-btn {
    background: #000000 !important;
    color: #FFFF00 !important;
    border: 1px solid #FFFF00 !important;
}

body.high-contrast .app-icon {
    background: #111111 !important;
    border: 1px solid #FFFFFF !important;
}
body.high-contrast .app-icon svg {
    stroke: #FFFF00 !important;
}

body.high-contrast .return-to-top-btn {
    background: #000000 !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFF00 !important;
}

body.high-contrast .privacy-banner {
    background: #000000 !important;
    border-top: 2px solid #FFFF00 !important;
}

body.high-contrast .a11y-panel {
    background: #0A0A0A !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFFFF !important;
}
body.high-contrast .a11y-toggle-btn {
    background: #000000 !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFF00 !important;
}
body.high-contrast .a11y-font-btn {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
}
body.high-contrast .a11y-font-btn.active {
    background: #FFFF00 !important;
    color: #000000 !important;
    border-color: #FFFF00 !important;
}
body.high-contrast .a11y-mode-btn {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
}
body.high-contrast .a11y-mode-btn.active {
    background: #FFFF00 !important;
    color: #000000 !important;
    border-color: #FFFF00 !important;
}

/* ==========================================================================
   LEGAL DISCLOSURES PAGE (legal.html)
   ========================================================================== */
.legal-hero {
    margin-bottom: 2rem;
    max-width: 860px;
}
.legal-hero h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    margin-bottom: 0.75rem;
}
.legal-hero-desc {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.65;
}
.legal-jump-nav,
.page-jump-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}
.legal-jump-nav a,
.page-jump-nav a {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.15s ease;
}
.legal-jump-nav a:hover,
.page-jump-nav a:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
}
.legal-sections-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.legal-card {
    scroll-margin-top: 5rem;
}
.legal-meta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}
.legal-body h3 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.legal-body h3:first-of-type {
    margin-top: 0;
}
.legal-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-body ul {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-body li {
    margin-bottom: 0.5rem;
}
.legal-body code {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875em;
}
.legal-contact-note {
    background: var(--bg-subtle);
    border-left: 3px solid var(--accent-primary);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    #a11y-widget {
        bottom: 1.25rem;
        left: 1rem;
    }
    .a11y-panel {
        width: calc(100vw - 2rem);
        left: 0;
    }
    .legal-jump-nav {
        flex-direction: column;
    }
}

/* Official Logo Mark */
.site-logo-mark {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

body.high-contrast .site-logo-mark {
    filter: drop-shadow(0 0 2px #FFFF00);
}


/* ==========================================================================
   MOBILE PORTRAIT HEADER OPTIMIZATIONS (320px - 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .header-inner {
        padding: 0.6rem 0.85rem;
        gap: 0.5rem;
    }
    .logo-wrap {
        gap: 0.5rem;
    }
    .site-logo-mark {
        height: 32px;
        width: auto;
    }
    .logo-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .logo-sub {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }
    .patent-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.55rem;
    }
}

@media (max-width: 440px) {
    .header-actions .patent-badge {
        display: none; /* In narrow mobile portrait, save header space for logo and burger */
    }
    .logo-sub {
        display: none; /* Single-line clean branding on narrow phones */
    }
    .logo-title {
        font-size: 0.95rem;
    }
    .header-actions {
        gap: 0;
    }
    .burger-btn {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   ABOUT US & FOUNDER PAGE (about.html)
   ========================================================================== */
.about-hero {
    margin-bottom: 2.5rem;
    max-width: 920px;
}
.about-hero h1 {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    color: var(--text-title);
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.about-hero-desc {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Mission Callout Card */
.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 5px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 2.25rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.mission-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), transparent 70%);
    pointer-events: none;
}
.mission-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}
.mission-quote {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-title);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.01em;
}
.mission-card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-body);
    margin: 0;
}

/* Two-Column About Grid (Founder & Company) */
.about-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.founder-card, .company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.founder-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.founder-portrait-wrap {
    width: 220px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.founder-portrait-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.founder-headline-info {
    flex: 1;
}
.founder-headline-info h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.01em;
}
.founder-role {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 0 0.25rem 0;
}
.founder-subrole {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.85rem;
}
.founder-tagline {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
    padding: 0.65rem 0.85rem;
    background: var(--bg-subtle);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.bio-content p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 1.15rem;
}
.bio-content p:last-of-type {
    margin-bottom: 1.5rem;
}

/* Competency Pills */
.competency-wrap {
    margin-bottom: 1.75rem;
}
.competency-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.6rem;
    display: block;
}
.competency-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.competency-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* LinkedIn Action Buttons */
.linkedin-action-wrap {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}
.btn-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #0A66C2;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(10, 102, 194, 0.2);
    width: 100%;
    text-align: center;
}
.btn-linkedin:hover {
    background: #004182;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 102, 194, 0.3);
}
.btn-linkedin svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Company Profile Details */
.company-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 0 0 0.5rem 0;
}
.company-id-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.id-item {
    display: flex;
    flex-direction: column;
}
.id-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.id-item-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
    font-family: var(--font-mono);
}
.lab-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.lab-features-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-body);
}
.lab-features-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-primary);
    font-size: 0.7rem;
}

/* Engineering Pillars Grid */
.pillars-section {
    margin-bottom: 3rem;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: block;
}
.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-title);
    margin: 0 0 0.65rem 0;
}
.pillar-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0;
}

/* High Contrast Overrides */
body.high-contrast .mission-card {
    border-left-color: #FFFF00;
    background: #000000;
}
body.high-contrast .mission-quote {
    color: #FFFFFF;
}
body.high-contrast .founder-card,
body.high-contrast .company-card,
body.high-contrast .pillar-card {
    background: #000000;
    border-color: #FFFFFF;
}
body.high-contrast .btn-linkedin {
    background: #000000;
    border: 2px solid #00F0FF;
    color: #00F0FF;
}
body.high-contrast .btn-linkedin:hover {
    background: #00F0FF;
    color: #000000;
}
body.high-contrast .competency-pill {
    background: #000000;
    border-color: #FFFF00;
    color: #FFFF00;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .about-main-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .mission-card {
        padding: 1.5rem;
    }
    .founder-card, .company-card {
        padding: 1.5rem;
    }
    .founder-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    .founder-portrait-wrap {
        width: 200px;
        max-width: 80vw;
    }
    .founder-tagline {
        border-left: none;
        border-top: 3px solid var(--accent-primary);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        text-align: left;
    }
    .company-id-box {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GOVERNMENT CONTRACTOR CAPABILITIES CARD (SAM.gov, CAGE, NAICS, PSC)
   ========================================================================== */
.capability-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem 2rem;
    margin: 2.5rem 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.capability-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}
.capability-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.75rem;
}
.capability-title-group h2,
.capability-title-group h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 0.25rem 0;
}
.capability-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.capability-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.capability-status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Primary Identifiers Banner (CAGE, UEI, NAICS, Domicile) */
.contractor-id-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.contractor-id-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.contractor-id-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.contractor-id-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* 3-Column Codes Grid: NAICS, PSC, Core Competencies */
.capability-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.capability-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-light);
}
.code-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.code-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-body);
}
.code-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    font-size: 0.82rem;
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid var(--border-hover);
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}
.code-badge.primary-code {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #1D4ED8;
}

/* Differentiators & Contracting Vehicles Callout */
.contractor-footer-strip {
    background: #F8FAFC;
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.contractor-footer-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.25rem;
}
.contractor-footer-text p {
    font-size: 0.88rem;
    color: var(--text-body);
    margin: 0;
}
.contractor-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* High contrast overrides */
body.high-contrast .capability-card {
    background: #000000;
    border-color: #FFFFFF;
}
body.high-contrast .contractor-id-strip {
    background: #111111;
    border-color: #FFFF00;
}
body.high-contrast .contractor-id-val {
    color: #FFFF00;
}
body.high-contrast .code-badge {
    background: #000000;
    border-color: #FFFF00;
    color: #FFFF00;
}
body.high-contrast .contractor-footer-strip {
    background: #111111;
    border-left-color: #FFFF00;
}

/* ==========================================================================
   HTML5 PAGE TRANSITIONS (CROSS-DOCUMENT VIEW TRANSITIONS & PROGRESSIVE BLUR/FADE)
   ========================================================================== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 420ms cubic-bezier(0.4, 0, 0.2, 1) both pageFadeBlurOut;
}

::view-transition-new(root) {
    animation: 480ms cubic-bezier(0.16, 1, 0.3, 1) both pageFadeBlurIn;
}

@keyframes pageFadeBlurOut {
    0% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.985);
    }
}

@keyframes pageFadeBlurIn {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.99);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

/* Progressive Fallback Body Transitions (with WebKit GPU acceleration) */
body {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

header.site-header,
main,
footer.site-footer {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: filter, opacity, transform;
}

body.page-is-leaving {
    opacity: 0 !important;
    filter: blur(14px) !important;
    -webkit-filter: blur(14px) !important;
    transform: translateY(-6px) scale(0.985) !important;
    transition: opacity 0.38s cubic-bezier(0.4, 0, 1, 1),
                filter 0.38s ease-in,
                -webkit-filter 0.38s ease-in,
                transform 0.38s ease-in !important;
    pointer-events: none !important;
}

body.page-is-leaving header.site-header,
body.page-is-leaving main,
body.page-is-leaving footer.site-footer {
    opacity: 0 !important;
    filter: blur(14px) !important;
    -webkit-filter: blur(14px) !important;
    transform: translateY(-6px) scale(0.985) !important;
    transition: opacity 0.38s cubic-bezier(0.4, 0, 1, 1),
                filter 0.38s ease-in,
                -webkit-filter 0.38s ease-in,
                transform 0.38s ease-in !important;
}

body.page-entering {
    opacity: 0 !important;
    filter: blur(14px) !important;
    -webkit-filter: blur(14px) !important;
    transform: translateY(6px) !important;
}

body.page-entering header.site-header,
body.page-entering main,
body.page-entering footer.site-footer {
    opacity: 0 !important;
    filter: blur(14px) !important;
    -webkit-filter: blur(14px) !important;
    transform: translateY(6px) !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
    body,
    body.page-is-leaving,
    body.page-entering {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
    .site-drawer {
        animation: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   NAVIGATION GATEWAY CARDS (INDEX / OVERVIEW PORTAL)
   ========================================================================== */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.gateway-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}
.gateway-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.gateway-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.gateway-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.6rem;
}
.gateway-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-body);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}
.gateway-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.15s ease;
}
.gateway-card:hover .gateway-link {
    transform: translateX(4px);
}

/* ==========================================================================
   CODE & FORMULA SPECIFICATION BOXES
   ========================================================================== */
.spec-code-block {
    background: #0F172A;
    color: #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-x: auto;
    border: 1px solid #1E293B;
    margin: 1.25rem 0;
}
.spec-code-block code {
    font-family: inherit;
    color: inherit;
}
.spec-comment { color: #94A3B8; }
.spec-kw { color: #38BDF8; font-weight: 600; }
.spec-num { color: #F59E0B; }
.spec-fn { color: #A78BFA; }

.kat-display {
    background: #F8FAFC;
    border: 1px solid var(--border-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    color: var(--text-title);
    word-break: break-all;
    margin: 1rem 0;
}

/* High contrast overrides for new elements */
body.high-contrast .gateway-card {
    background: #000000;
    border-color: #FFFFFF;
}
body.high-contrast .gateway-card:hover {
    border-color: #FFFF00;
}
body.high-contrast .gateway-icon {
    background: #000000;
    border: 1px solid #FFFF00;
    color: #FFFF00;
}
body.high-contrast .gateway-link {
    color: #FFFF00;
}
body.high-contrast .kat-display {
    background: #000000;
    border-color: #FFFFFF;
    border-left-color: #FFFF00;
    color: #FFFFFF;
}



/* ==========================================================================
   SITE v2.1.0 ADDITIONS
   Glossary hover callouts, FAQ, glossary list, footer meta
   ========================================================================== */
a.gloss {
    position: relative;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-primary);
    cursor: help;
}
a.gloss:hover, a.gloss:focus-visible {
    color: var(--accent-primary);
    border-bottom-style: solid;
}
@media (hover: hover) and (pointer: fine) {
    a.gloss::after {
        content: attr(data-def);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        transform: translateX(-50%);
        width: max-content;
        max-width: min(320px, 80vw);
        padding: 0.65rem 0.85rem;
        background: var(--text-title);
        color: #F8FAFC;
        border-radius: var(--radius-sm);
        font-size: 0.82rem;
        font-weight: 400;
        line-height: 1.45;
        text-align: left;
        text-transform: none;
        letter-spacing: normal;
        white-space: normal;
        box-shadow: var(--shadow-hover);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.15s ease;
        z-index: 60;
    }
    a.gloss:hover::after, a.gloss:focus-visible::after {
        opacity: 1;
        visibility: visible;
    }
}
body.high-contrast a.gloss { border-bottom-color: currentColor; }

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-title);
    padding: 0.9rem 0;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 1.4rem;
    color: var(--accent-primary);
    font-weight: 700;
}
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p {
    margin: 0 0 1rem 1.4rem;
    line-height: 1.65;
}

.gloss-list dt {
    font-weight: 700;
    color: var(--text-title);
    margin-top: 1.1rem;
    scroll-margin-top: 90px;
}
.gloss-list dt:target { color: var(--accent-primary); }
.gloss-list dd {
    margin: 0.2rem 0 0 0;
    line-height: 1.6;
}

.footer-meta { margin-top: 0.4rem; }
.site-version {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* High-contrast coverage for v2.1.0 additions */
body.high-contrast .faq-item { border-bottom: 1px solid #FFFFFF !important; }
body.high-contrast .faq-item summary {
    color: #FFFF00 !important;
    background: transparent !important;
}
body.high-contrast .faq-item summary::before { color: #FFFF00 !important; }
body.high-contrast .faq-item summary:focus-visible { outline: 3px solid #38BDF8; outline-offset: 2px; }
body.high-contrast .gloss-list dt,
body.high-contrast .gloss-list dt:target { color: #FFFF00 !important; }
body.high-contrast .gloss-list dd { color: #FFFFFF !important; }
body.high-contrast .site-version,
body.high-contrast .footer-meta { color: #FFFFFF !important; }
body.high-contrast a.gloss { border-bottom: 2px dotted #FFFF00 !important; }
@media (hover: hover) and (pointer: fine) {
    body.high-contrast a.gloss::after {
        background: #000000 !important;
        color: #FFFFFF !important;
        border: 2px solid #FFFF00;
    }
}



/* ==========================================================================
   SWIPE NAVIGATION & GENIE HINT ANIMATION (MACOS DOCK MINIMIZE EFFECT)
   ========================================================================== */
.swipe-hint-container {
    position: fixed;
    bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    z-index: 99999 !important;
    perspective: 700px;
    -webkit-perspective: 700px;
    transition: bottom 0.3s ease;
}

/* Position above privacy banner if visible */
body.has-privacy-banner .swipe-hint-container {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 640px) {
    body.has-privacy-banner .swipe-hint-container {
        bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.swipe-hint-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.35rem;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.5), 0 0 25px rgba(37, 99, 235, 0.35);
    color: #F8FAFC;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-origin: 50% 100%;
    -webkit-transform-origin: 50% 100%;
    cursor: pointer;
    user-select: none;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.swipe-hint-pill:hover,
.swipe-hint-pill:active {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.6), 0 0 28px rgba(37, 99, 235, 0.55);
}

.swipe-hint-arrows {
    font-family: var(--font-mono);
    color: #60A5FA;
    font-weight: 700;
    letter-spacing: -0.05em;
    display: inline-block;
}

.swipe-hint-arrows.left {
    animation: hint-nudge-left 1.3s ease-in-out infinite;
}

.swipe-hint-arrows.right {
    animation: hint-nudge-right 1.3s ease-in-out infinite;
}

@keyframes hint-nudge-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

@keyframes hint-nudge-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* --- Authentic macOS Genie Effect (Bottle Emergence & Minimize) --- */
.swipe-hint-pill.is-emerging {
    animation: mac-genie-emerge 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.swipe-hint-pill.is-sucking {
    animation: mac-genie-suck 0.75s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes mac-genie-emerge {
    0% {
        opacity: 0;
        transform: translateY(48px) scale(0.08, 0.04) rotateX(60deg);
        filter: blur(6px);
        -webkit-filter: blur(6px);
    }
    28% {
        opacity: 0.75;
        transform: translateY(18px) scale(0.35, 0.72) rotateX(36deg) skewX(3deg);
        filter: blur(2.5px);
        -webkit-filter: blur(2.5px);
    }
    58% {
        opacity: 0.98;
        transform: translateY(-8px) scale(1.06, 1.2) rotateX(-8deg) skewX(-2deg);
        filter: blur(0.5px);
        -webkit-filter: blur(0.5px);
    }
    80% {
        opacity: 1;
        transform: translateY(2px) scale(0.98, 0.96) rotateX(2deg) skewX(0.5deg);
        filter: blur(0);
        -webkit-filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1, 1) rotateX(0deg) skewX(0deg);
        filter: blur(0);
        -webkit-filter: blur(0);
    }
}

@keyframes mac-genie-suck {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1, 1) rotateX(0deg) skewX(0deg);
        filter: blur(0);
        -webkit-filter: blur(0);
    }
    22% {
        opacity: 0.95;
        transform: translateY(-8px) scale(1.04, 1.18) rotateX(-6deg) skewX(-2deg);
    }
    55% {
        opacity: 0.75;
        transform: translateY(18px) scale(0.38, 0.7) rotateX(32deg) skewX(3deg);
        filter: blur(2px);
        -webkit-filter: blur(2px);
    }
    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.06, 0.03) rotateX(65deg) skewX(0deg);
        filter: blur(8px);
        -webkit-filter: blur(8px);
    }
}

/* Accessibility: High Contrast & Reduced Motion */
body.high-contrast .swipe-hint-pill {
    background: #000000 !important;
    color: #FFFF00 !important;
    border: 2px solid #FFFF00 !important;
    box-shadow: none !important;
}
body.high-contrast .swipe-hint-arrows {
    color: #FFFF00 !important;
}

@media (prefers-reduced-motion: reduce) {
    .swipe-hint-pill.is-emerging {
        animation: hint-simple-fade-in 0.3s ease-out forwards !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
    }
    .swipe-hint-pill.is-sucking {
        animation: hint-simple-fade-out 0.3s ease-in forwards !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
    }
    .swipe-hint-arrows.left,
    .swipe-hint-arrows.right {
        animation: none !important;
    }
}

@keyframes hint-simple-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hint-simple-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}
