/* INSTITUTIONAL STANDARD DESIGN SYSTEM v6 */

/* Typography is loaded from Google Fonts in each page; system fallbacks remain available. */

:root {
    --bg-color: #FAFAFA;
    --text-color: #02203A;
    --text-secondary: #061C2E;
    --accent-color: #03233C;
    --accent-light: #C7CED1;
    --border-color: #E0E0E0;
    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-serif: 'IBM Plex Serif', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-nav: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    --font-heading: 'IBM Plex Sans', sans-serif;
    --spacing-unit: 24px;
    --header-height: 64px;
    --max-width: 1360px; /* Adjusted: Narrowed from 1600px to 1360px */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Fluid base font: 16px at >=1920px viewport, 18px at <=800px, linear between.
   Scales all rem-based sizing so narrow screens get larger text without
   layout changes. */
html {
    font-size: clamp(16px, calc(18.92px - 0.234vw), 18px);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-color); }

/* --- UNIFIED HEADER STRUCTURE --- */
.global-nav-outer {
    width: 100%;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-unit);
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-group a {
    display: flex;
    align-items: center;
}

.nav-links { 
    display: flex; 
    align-items: center;
    gap: 30px; 
}
.nav-links a { color: #666; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }

/* --- SECTION NAV (sub-nav scoped to Loom or Air Interface) --- */
.section-nav-outer {
    width: 100%;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.section-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 36px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.section-nav-label {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #02203A;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    padding-right: 28px;
    border-right: 1px solid var(--border-color);
}

.section-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.section-nav-links::-webkit-scrollbar { display: none; }

.section-nav-links a {
    color: #555;
    font-weight: 500;
    font-size: 0.98rem;
    white-space: nowrap;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.14s, border-color 0.14s;
}
.section-nav-links a:hover { color: var(--accent-color); }
.section-nav-links a.active {
    color: #02203A;
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 720px) {
    .section-nav-inner { height: 54px; gap: 18px; }
    .section-nav-label { padding-right: 16px; font-size: 0.76rem; }
    .section-nav-links { gap: 20px; }
    .section-nav-links a { font-size: 0.88rem; }
}

/* Top-pinned reveal: a clone of the section nav slides down from the
   viewport top when the user has scrolled near the end of a long page. */
.section-nav-bottom {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    transform: translateY(-100%);
    transition: transform 0.22s ease-out;
    pointer-events: none;
}
.section-nav-bottom.visible {
    transform: translateY(0);
    pointer-events: auto;
}

/* --- MAIN CONTENT CONTAINER --- */
.container { 
    padding: 50px var(--spacing-unit);
    max-width: var(--max-width); 
    margin: 0 auto; 
}

/* WWW & TEXT STYLES */
.hero-statement {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 2px solid var(--text-color);
    max-width: 1000px;
}

.scope-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 70ch;
    color: #222;
}

/* MARKETS STRIP */
.markets-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.markets-strip .divider {
    color: #ccc;
}

.invariants-box {
    margin: 50px 0 80px 0;
    padding-left: 25px;
    border-left: 4px solid var(--accent-color);
}

.invariants-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 1rem;
}
.invariants-list li { margin-bottom: 12px; }
.invariants-list li::before { content: ":: "; color: #999; }

/* SUBDOMAIN LAYOUTS */
.layout-sidebar { 
    display: grid; 
    grid-template-columns: 260px 1fr;
    gap: 80px; 
}

.sidebar-nav { position: sticky; top: 100px; font-family: var(--font-mono); font-size: 0.9rem; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 10px; }
.version-badge { background: #eee; padding: 4px 8px; font-size: 0.75rem; display: inline-block; margin-bottom: 25px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
h1 { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.3rem; }

/* TABLES & LISTS */
table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.95rem; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 16px; text-align: left; }
th { background: #f4f4f4; font-weight: 600; }

.file-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #eee; font-family: var(--font-mono); font-size: 0.95rem; }
.file-meta { color: #888; }

/* DIRECTORY LIST */
.directory-list { border-top: 1px solid #ddd; margin-top: 80px; }
.directory-link { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #ddd; font-family: var(--font-mono); font-size: 1.05rem; transition: all 0.2s;}
.directory-link:hover { color: var(--accent-color); padding-left: 15px; }
.mono { font-family: var(--font-mono); }
.normative { text-transform: uppercase; font-weight: bold; font-size: 0.85em; }

/* FORM STYLES */
.form-group { margin-bottom: 25px; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 10px; color: #666; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--text-color);
    background: #fff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    outline: none;
    border-radius: 0;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-color); }
button.btn-submit {
    background: var(--text-color);
    color: #fff;
    border: none;
    padding: 18px 35px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 700;
}
button.btn-submit:hover { background: var(--accent-color); }

.corporate-details {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #666;
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 25px;
}

/* LOGO STYLES */
.nav-logo {
    width: 28px;
    height: auto;
}

.nav-logo-horizontal {
    height: 32px;
    width: auto;
    display: block;
}

/* BRAND LOCKUP COMPONENT
   Built per DOCTRINE.md section 5 - Primary Lockup.
   Drive size via --u (1 unit). All proportions derive from --u.
   Spec: symbol 24U \00D7  24U \00B7  cap 6.5U \00B7  gap 3U \00B7  baseline +0.75U \00B7 
         Plex SemiBold \00B7  tracking +70 \00B7  kern RO\2212 0.015em LA\2212 0.020em */
.brand-lockup {
    --u: 3px;
    display: inline-flex;
    align-items: center;
    color: #000000;
    line-height: 1;
    text-decoration: none;
}
.brand-lockup .brand-symbol {
    width: calc(var(--u) * 24);
    height: calc(var(--u) * 24);
    flex-shrink: 0;
    display: block;
}
.brand-lockup .brand-symbol svg,
.brand-lockup .brand-symbol img {
    display: block;
    width: 100%;
    height: 100%;
}
.brand-lockup .brand-wordmark {
    margin-left: calc(var(--u) * 3);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    /* cap 6.5U; Plex SemiBold cap-to-em \2248  0.70 \2192  em = 6.5/0.70 \2248  9.29U */
    font-size: calc(var(--u) * 9.29);
    letter-spacing: 0.070em;
    line-height: 1;
    margin-top: calc(var(--u) * 0.75);  /* baseline offset approximation */
    white-space: nowrap;
}
.brand-lockup .brand-wordmark .k-ro { margin-right: -0.015em; }
.brand-lockup .brand-wordmark .k-la { margin-right: -0.020em; }

/* Size variants per DOCTRINE.md section 6 */
.brand-lockup.size-nav     { --u: 1.8px; }
.brand-lockup.size-small   { --u: 3px; }
.brand-lockup.size-page    { --u: 5px; }
.brand-lockup.size-hero    { --u: 9px; }
.brand-lockup.size-print   { --u: 14px; }

.hero-logo {
    margin-bottom: 50px;
}

.hero-logo-img {
    width: 200px;
    height: auto;
}

/* PRODUCT CARDS */
.product-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.product-cards-full {
    grid-template-columns: 1fr;
}

.product-card {
    border: 1px solid #ddd;
    padding: 30px;
    transition: all 0.2s;
    display: block;
    background: #fff;
}

.product-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card-large {
    padding: 40px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.product-code-large {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.1em;
}

.product-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    background: #e8f4e8;
    color: #2d6a2d;
    border-radius: 2px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.product-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
}

.product-highlights {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.highlight {
    display: flex;
    flex-direction: column;
}

.highlight-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.highlight-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* PRODUCT PAGE STYLES */
.product-badge {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.product-header-large {
    margin-bottom: 20px;
}

.product-header-large h1 {
    margin-top: 10px;
}

.product-tagline {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 50px;
}

.arch-features, .application-list {
    display: grid;
    gap: 25px;
    margin: 25px 0;
}

.arch-item, .application-item {
    padding: 20px;
    background: #f8f8f8;
    border-left: 3px solid #ddd;
}

.arch-item:hover, .application-item:hover {
    border-left-color: var(--accent-color);
}

.arch-item strong, .application-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.arch-item p, .application-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.comparison-section {
    margin-top: 60px;
}

/* PRODUCT HERO (MARKETING) */
.product-hero {
    max-width: 800px;
    margin-bottom: 80px;
}

.product-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-hero-title {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    line-height: 1;
}

.product-hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.product-hero-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 35px;
}

.product-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-primary {
    background: var(--text-color);
    color: #fff;
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--text-color);
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-color);
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: #fff;
}

.btn-derivative {
    background: transparent;
    color: var(--text-color);
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px dashed var(--text-secondary, #666);
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-derivative:hover {
    background: var(--text-color);
    color: #fff;
    border-style: solid;
}

.product-hero-trust {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
}

/* USE CASES SECTION */
.use-cases-section {
    margin-bottom: 80px;
}

.use-cases-section h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.use-case-card {
    padding: 30px;
    background: #f8f8f8;
    border-left: 3px solid #ddd;
    transition: border-color 0.2s;
}

.use-case-card:hover {
    border-left-color: var(--accent-color);
}

.use-case-card h3 {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.use-case-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* WHY SECTION */
.why-section {
    margin-bottom: 80px;
    padding: 60px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.why-section h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-item h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.why-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* INDUSTRIES SECTION */
.industries-section {
    margin-bottom: 80px;
}

.industries-section h2 {
    font-size: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.industries-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.industries-strip span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 16px;
    background: #f4f4f4;
    color: #333;
}

/* PAGE NAVIGATION */
.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    margin-bottom: 60px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.page-nav a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 16px;
    background: #f4f4f4;
    color: #333;
    transition: all 0.2s;
}

.page-nav a:hover {
    background: var(--text-color);
    color: #fff;
}

/* MARKET SECTIONS */
.market-section {
    margin-bottom: 80px;
}

.market-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--text-color);
}

.market-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.market-subtitle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.market-item {
    margin-bottom: 50px;
    padding-left: 25px;
    border-left: 3px solid #ddd;
}

.market-item:hover {
    border-left-color: var(--accent-color);
}

.market-item h3 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
}

.market-app {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.market-item > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    max-width: 800px;
}

.market-item code {
    font-family: var(--font-mono);
    background: #f4f4f4;
    padding: 2px 6px;
    font-size: 0.9em;
}

.market-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.market-feature {
    padding: 20px;
    background: #f8f8f8;
}

.market-feature strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.market-feature p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* BOTTOM CTA SECTION */
.bottom-cta-section {
    background: #f8f8f8;
    padding: 60px;
    margin: 0 -24px;
    text-align: center;
}

.bottom-cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.bottom-cta-section p {
    font-size: 1.1rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.bottom-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bottom-ctas a {
    font-family: var(--font-heading);
}

/* IBIS DEFINITION */
.ibis-definition {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 20px 0;
    margin-bottom: 30px;
    font-style: italic;
}

/* COMPARISON TABLE */
.comparison-table-container {
    margin: 40px 0;
}

.comparison-table-container h4 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.comparison-table-container .table-summary {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.comparison-table-scroll {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.comparison-table th {
    background: var(--text-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.comparison-table th:nth-child(2) {
    background: var(--accent-color);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.comparison-table td:nth-child(2) {
    background: rgba(3, 35, 60, 0.05);
}

.comparison-table td strong {
    color: var(--accent-color);
}

.comparison-table tbody tr:hover {
    background: rgba(199, 206, 209, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Tighten header: shrink wordmark and nav for mobile */
    .global-nav-inner {
        padding: 0 14px;
        font-size: 0.7rem;
        gap: 10px;
    }
    .brand-lockup.size-nav { --u: 1.3px; }
    .nav-links { gap: 12px; }

    .product-cards {
        grid-template-columns: 1fr;
    }
    
    .product-highlights {
        flex-direction: column;
        gap: 15px;
    }
    
    .layout-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        position: static;
        margin-bottom: 30px;
    }
    
    .product-hero-title {
        font-size: 2.5rem;
    }
    
    .use-cases-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .product-hero-ctas,
    .bottom-ctas {
        flex-direction: column;
    }
    
    .bottom-cta-section {
        padding: 40px 20px;
    }
    
    .market-features {
        grid-template-columns: 1fr;
    }
    
    .page-nav {
        gap: 8px;
    }
    
    .page-nav a {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* --- LATENCY DISTRIBUTION VISUAL --- */
.latency-visual {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    color: var(--text-color);
}

.latency-title {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #444;
}

.latency-graphs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.latency-graph-label {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

.latency-plot {
    height: 100px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    border: 1px solid var(--border-color);
}

.latency-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

.latency-plot.glai .latency-line {
    position: absolute;
    left: 8%;
    top: 15%;
    width: 3px;
    height: 70%;
    background: var(--accent-color);
    border-radius: 2px;
}

.latency-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 8px;
    color: #666;
}

.latency-stat {
    font-size: 0.85rem;
    margin-top: 12px;
    color: #333;
}

@media (max-width: 768px) {
    .latency-graphs {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* EARLY ACCESS PAGES */
.early-access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 48px;
    align-items: start;
}

.early-access-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 28px;
}

.early-access-panel h3 {
    margin-top: 0;
}

.early-access-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.early-access-list li {
    border-top: 1px solid var(--border-color);
    padding: 14px 0;
    font-size: 1.02rem;
    line-height: 1.55;
}

.early-access-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.early-access-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.early-access-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #333;
    background: #f4f4f4;
    border: 1px solid var(--border-color);
    padding: 7px 10px;
}

.early-access-note {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: #666;
    line-height: 1.6;
    border-left: 3px solid var(--accent-color);
    padding-left: 18px;
    margin-top: 22px;
}

.early-access-form {
    max-width: 720px;
}

.early-access-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .early-access-grid {
        grid-template-columns: 1fr;
    }

    .early-access-form .form-row {
        grid-template-columns: 1fr;
    }
}


/* FOUNDER NOTES */
.founder-note {
    max-width: 68ch;
    margin: 0 auto 80px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.founder-note .founder-note-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.founder-note h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-color);
}

.founder-note .founder-note-byline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 40px;
}

.founder-note p {
    margin-bottom: 22px;
}

.founder-note p + p {
    text-indent: 0;
}

.founder-note em {
    font-style: italic;
}

.founder-note code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 2px;
}

.founder-note hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 36px auto;
    max-width: 120px;
}

.founder-note .pull-line {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
    padding: 6px 0 6px 22px;
    margin: 36px 0;
}

.founder-note strong {
    font-weight: 600;
    color: var(--text-color);
}

.founder-note figure {
    margin: 36px 0;
}

.founder-note figure svg {
    width: 100%;
    height: auto;
    display: block;
}

.founder-note figcaption {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

.founder-note-end {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.founder-note-end a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Founder note teaser cards (homepage + product pages) */
.founder-note-teaser {
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.founder-note-teaser:hover {
    border-color: var(--accent-color);
    color: inherit;
}

.founder-note-teaser .teaser-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.founder-note-teaser .teaser-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

.founder-note-teaser .teaser-pull {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.founder-note-teaser .teaser-cta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-top: auto;
}

.founder-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0 60px;
}

@media (max-width: 720px) {
    .founder-notes-grid {
        grid-template-columns: 1fr;
    }

    .founder-note h1 {
        font-size: 1.7rem;
    }

    .founder-note {
        font-size: 1.05rem;
    }
}

/* ============================================================
   Early Access modal
   ============================================================ */
.ea-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 32, 58, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 16px;
    z-index: 1000;
}
.ea-modal-overlay.open { display: flex; }
html.ea-modal-locked, html.ea-modal-locked body { overflow: hidden; }

.ea-modal {
    position: relative;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    width: min(960px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 56px 56px;
}

.ea-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: -32px -40px 0 0;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    line-height: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 1;
}
.ea-modal-close:hover { color: #000; }

/* Tighten full-page spacing when the content lives in the dialog */
.ea-modal .product-hero { margin-bottom: 40px; max-width: none; }
.ea-modal .product-hero-title { font-size: 2.4rem; }
.ea-modal .product-hero-desc { font-size: 1.05rem; }
.ea-modal .market-section { margin-bottom: 48px; }
.ea-modal .market-section:last-child { margin-bottom: 0; }
.ea-modal .market-header { margin-bottom: 24px; padding-bottom: 14px; }

@media (max-width: 700px) {
    .ea-modal { padding: 32px 20px 40px; }
    .ea-modal-close { margin: -20px -8px 0 0; }
    .ea-modal .product-hero-title { font-size: 1.8rem; }
}

.ea-modal-confirm { padding: 40px 0 20px; text-align: center; }
.ea-modal-confirm h2 { font-size: 2rem; margin-bottom: 14px; }
.ea-modal-confirm p { max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }
.ea-submit-error { color: #8a1f11; font-size: 0.9rem; margin-top: 12px; }

.ea-modal-title { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 24px; }
.ea-modal .contact-form-section { padding: 0; border-top: none; }

/* ============================================================
   Motion pass: view transitions, scroll reveal, micro-motion
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition { pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

/* Scroll reveal (class applied by motion.js; no-JS pages stay visible) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.in { opacity: 1; transform: none; }

/* Micro-motion */
.market-item { transition: border-left-color 0.15s ease; }
.form-group input, .form-group textarea, .form-group select {
    transition: border-color 0.15s ease;
}
button.btn-submit { transition: background 0.15s ease, color 0.15s ease; }

/* Modal enter animation (visibility instead of display so it can animate) */
.ea-modal-overlay {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    background: rgba(2, 32, 58, 0);
    transition: background 0.18s ease-out, visibility 0s linear 0.18s;
}
.ea-modal-overlay.open {
    visibility: visible;
    pointer-events: auto;
    background: rgba(2, 32, 58, 0.62);
    transition: background 0.18s ease-out;
}
.ea-modal-overlay .ea-modal {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.ea-modal-overlay.open .ea-modal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .ea-modal-overlay, .ea-modal-overlay.open .ea-modal { transition: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ============================================================
   Sticky page-nav with scroll-spy; copy-on-click spec cells
   ============================================================ */
.page-nav a.active {
    background: var(--text-color);
    color: #fff;
}
/* When scrolled past its natural spot, the page-nav shrinks and floats
   in the top-right corner below the global nav. */
.page-nav.floating {
    position: fixed;
    top: calc(var(--header-height) + 14px);
    right: 24px;
    z-index: 90;
    margin: 0;
    padding: 6px 0;
    border: none;
    background: transparent;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    max-width: 60vw;
}
/* Invisible halo: keeps :hover alive when the pointer drifts a little. */
.page-nav.floating::before {
    content: '';
    position: absolute;
    inset: -18px -18px -22px -18px;
    z-index: -1; /* behind the links so pills stay hoverable and clickable */
}
/* Collapsed: each link is a small dot; active section is filled navy. */
.page-nav.floating a {
    font-size: 0;
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: #c9ced2;
    /* Shape changes are instant in both directions: width animates from auto
       and cannot tween, so any gradual morph strands label text outside the
       pill. The leave grace period lives in motion.js (.stay class); only the
       scroll-spy color tweens. */
    transition: background 0.15s ease;
}
.page-nav.floating a.active { background: var(--text-color); }
/* Hover (or keyboard focus) expands the cluster back into labeled pills. */
.page-nav.floating:hover,
.page-nav.floating:focus-within,
.page-nav.floating.stay {
    padding: 6px;
    border: 1px solid #ddd;
    background: rgba(250, 250, 250, 0.96);
    gap: 5px;
}
.page-nav.floating:hover a,
.page-nav.floating:focus-within a,
.page-nav.floating.stay a {
    font-size: 0.65rem;
    width: auto;
    height: auto;
    padding: 4px 9px;
    border-radius: 0;
    background: #f4f4f4;
    color: #333;
}
.page-nav.floating:hover a.active,
.page-nav.floating:focus-within a.active,
.page-nav.floating.stay a.active {
    background: var(--text-color);
    color: #fff;
}
.page-nav.floating:hover a:hover,
.page-nav.floating:focus-within a:hover,
.page-nav.floating.stay a:hover {
    background: var(--text-color);
    color: #fff;
}

.copyable { cursor: copy; position: relative; }
.copyable:hover { background: #f0f2f4; }
.copied-pill {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-color);
    color: #fff;
    padding: 2px 8px;
    pointer-events: none;
    animation: copied-fade 0.9s ease-out forwards;
}
@keyframes copied-fade {
    0% { opacity: 0; }
    15%, 70% { opacity: 1; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .copied-pill { animation: none; }
}

/* Anchor targets must clear the sticky header + sticky page-nav.
   --page-nav-height is measured at runtime (ResizeObserver in motion.js)
   so wraps and font scaling are accounted for; the fallback covers no-JS. */
section[id], div[id], h2[id], h3[id] {
    scroll-margin-top: calc(var(--header-height) + var(--page-nav-height, 40px) + 16px);
}

.ea-modal-subtitle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #666;
    margin: -12px 0 28px;
}
.ea-modal #apply.market-section { margin-bottom: 0; }

/* ============================================================
   Compact modal forms + visible scrollbar
   ============================================================ */
.ea-modal form.early-access-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    max-width: none !important;
}
.ea-modal form.early-access-form .form-row,
.ea-modal form.early-access-form .form-group:has(textarea),
.ea-modal form.early-access-form .tier-toggle,
.ea-modal form.early-access-form > div[id],
.ea-modal form.early-access-form button,
.ea-modal form.early-access-form p {
    grid-column: 1 / -1;
}
.ea-modal .form-group { margin-bottom: 14px; }
.ea-modal .form-label { margin-bottom: 5px; font-size: 0.75rem; }
.ea-modal input[type="text"], .ea-modal input[type="email"],
.ea-modal select { padding: 9px 12px; }
.ea-modal textarea { padding: 9px 12px; min-height: 70px; height: 70px; }
.ea-modal .ea-modal-title { margin-bottom: 14px; }
.ea-modal .ea-modal-subtitle { margin: -8px 0 18px; }
.ea-modal { padding: 36px 48px 40px; }

.ea-modal { scrollbar-width: auto; scrollbar-color: var(--accent-color) #e6e9ec; }
.ea-modal::-webkit-scrollbar { width: 14px; }
.ea-modal::-webkit-scrollbar-track { background: #e6e9ec; }
.ea-modal::-webkit-scrollbar-thumb { background: var(--accent-color); border: 3px solid #e6e9ec; }
.ea-modal::-webkit-scrollbar-thumb:hover { background: #000; }

.ea-email-warning {
    max-width: 480px;
    margin: -16px auto 28px;
    padding: 10px 14px;
    border-left: 3px solid #b45309;
    background: #fdf6ec;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #7a4a06;
    text-align: left;
}

/* Jobs application drag-and-drop uploader */
.upload-drop {
    border: 2px dashed #c9ced4;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.upload-drop.drag {
    border-color: #03233C;
    background: #f4f7fa;
}
.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1.5px solid #03233C;
    border-radius: 999px;
    background: #fff;
    color: #03233C;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.upload-btn:hover {
    background: #03233C;
    color: #fff;
}
.upload-hint {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #666;
}
.upload-chosen {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #03233C;
}
.upload-chosen .upload-clear {
    margin-left: 10px;
    color: #a33;
    text-decoration: none;
    font-weight: 700;
}


/* Jobs: the whole item, including the left bar, is the click target. */
.job-item { position: relative; cursor: pointer; }
.job-item .job-role-link::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -3px; /* include the border-left bar */
}
.job-item:hover h3 a { color: var(--accent-color); }

/* Required field left empty on a submit attempt */
input.field-missing,
select.field-missing,
textarea.field-missing {
    outline: 1px solid #b3372f;
    outline-offset: 1px;
}
