/* --- Insights & Article Styles --- */
/* --- Insights & Article Styles --- */
/* --- Insights & Article Styles --- */
.article-hub-container, .article-container {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    pointer-events: auto;
}

.article-nav-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    gap: 12px;
}

.article-nav-row .back-btn {
    margin-bottom: 0 !important;
}

.hub-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    font-family: 'Young Serif', serif;
    font-size: clamp(28px, 4.5vw, 36px);
    color: var(--color-text);
    margin: 0;
    line-height: 1.25;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-item.text-block {
    position: relative;
    width: 100%;
    height: auto;
    padding: 24px;
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s ease;
    box-sizing: border-box;
}

.article-item.text-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(72, 123, 195, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Accent frame wrapper for insights hub tiles and article pages.
   Dimensions and inner mask positioning are controlled by grid-physics.js
   using the same borderGutter formula as homepage blocks, ensuring the
   gutter width is always an exact number of grid columns (2 on desktop,
   1 on mobile) and every edge sits on a grid dot. */
.article-accent {
    position: relative;
    background-color: transparent;
    box-sizing: border-box;
    pointer-events: auto;
}

/* Inner mask is absolutely positioned by grid-physics.js
   (left/top/width/height set inline), matching homepage block pattern */
.article-accent > .text-block {
    position: absolute;
}

.article-card.text-block {
    position: relative;
    width: 100%;
    height: auto;
    padding: 28px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    pointer-events: auto;
    box-sizing: border-box;
}

.article-header {
    width: 100%;
    margin-bottom: 32px;
}

.article-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-grid);
    margin: 0;
}

@media (max-width: 767px) {
    .article-card.text-block {
        padding: 20px 16px;
    }
}

.article-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--color-grid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.article-title {
    font-family: 'Young Serif', serif;
    font-size: clamp(20px, 3vw, 24px);
    color: var(--color-text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.article-excerpt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0 0 20px 0;
    line-height: 1.55;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.article-item.text-block:hover .read-more-btn {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.read-more-icon {
    width: 14px;
    height: 14px;
    stroke: var(--color-text);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.article-item.text-block:hover .read-more-icon {
    transform: translate(2px, -2px);
}

.article-tile-image-wrapper {
    width: 100%;
    margin: 12px 0 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.article-tile-image {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.article-item.text-block:hover .article-tile-image {
    transform: scale(1.015);
}

.article-card .headline {
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1.25;
}

.article-content {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
}

.article-content h1 {
    font-family: 'Young Serif', serif;
    font-size: 32px;
    color: var(--color-text);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.article-content h2 {
    font-family: 'Young Serif', serif;
    font-size: 24px;
    color: var(--color-text);
    margin: 32px 0 16px 0;
}

.article-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 24px 0 12px 0;
}

.article-content p {
    margin: 0 0 20px 0;
}

.article-content a {
    color: var(--color-cta);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: var(--color-cta);
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--color-grid);
    background: rgba(var(--color-grid-rgb), 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content hr.article-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 126, 200, 0.08) 0%, rgba(139, 126, 200, 0.38) 50%, rgba(139, 126, 200, 0.08) 100%);
    margin: 36px 0;
}

.article-content figure {
    margin: 32px 0;
    text-align: center;
}

.article-content img,
.article-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background-color: #141418;
}

.article-content figcaption {
    margin-top: 12px;
    font-size: 11px;
    color: var(--color-grid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-bottom: 24px;
    pointer-events: auto;
}
/* Article Share Toolbar */
.article-share-toolbar {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.share-toolbar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.share-toolbar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-grid);
    white-space: nowrap;
}

.share-toolbar-divider {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(var(--color-grid-rgb), 0.2);
}

.share-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

.share-btn:active {
    transform: translateY(1px) scale(0.98);
}

.share-btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.share-btn-icon.share-icon-linkedin {
    fill: #ffffff;
    stroke: none;
}

.share-btn-linkedin {
    background-color: #0a66c2;
    color: #ffffff;
    border: 1px solid #0a66c2;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.2);
}

.share-btn-linkedin:hover {
    background-color: #084e96;
    border-color: #084e96;
    box-shadow: 0 4px 16px rgba(10, 102, 194, 0.3);
}

.share-btn-secondary {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    color: var(--color-text);
    border: 1px solid rgba(139, 126, 200, 0.35);
}

.share-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--color-cta);
    color: var(--color-cta);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

@media (max-width: 767px) {
    .share-btn-group {
        width: 100%;
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
}

/* Accessibility & CSP-compliant Utility Classes */
.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;
}

/* ==========================================================================
   Awwwards Upgrade: Technical SVG Inference Schematic & Glass Render Transitions
   ========================================================================== */

/* Technical SVG Schematic */
.inference-schematic {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px 4px 16px;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

.schematic-svg {
    width: 100%;
    height: 50px;
    margin: 0 0 auto 0;
    overflow: visible;
}

.node-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    fill: var(--color-text);
}

.circuit-line-dashed {
    opacity: 0.6;
}

.data-packet-pulse {
    stroke-dasharray: 25 360;
    stroke-dashoffset: 380;
    animation: packetFlow 2.8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 3px var(--color-cta));
}

@keyframes packetFlow {
    0% {
        stroke-dashoffset: 380;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.schematic-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    z-index: 2;
}

.schematic-step-text {
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 9.5px;
}

.step-badge {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-grid);
    background: rgba(108, 142, 164, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(108, 142, 164, 0.25);
}

@media (max-width: 767px) {
    .schematic-telemetry {
        display: none;
    }
    .schematic-footer .step-badge:first-child {
        display: none;
    }
    /* Hide node text labels — too small to read on mobile */
    .node-label {
        display: none;
    }
    /* Scale up node icon shapes directly (CSS transform replaces SVG transform on <g>, so we target inner shapes instead) */
    .node circle,
    .node rect,
    .node path {
        transform: scale(1.5);
        transform-origin: center;
        transform-box: fill-box;
    }
    .schematic-svg {
        height: 36px;
    }
}

/* Reduced Motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    .data-packet-pulse {
        animation: none !important;
    }
}
