        :root {
            --bg-primary: #0A0A0A;
            --bg-panel: #16171A;
            --bg-panel-2: #1D1E22;
            --bg-secondary: #16171A;
            --bg-dark: #05060A;
            --text-primary: #FAF8F2;
            --text-secondary: #A1A1AA;
            --text-tertiary: #6B6B74;
            --accent: #3B82F6;
            --accent-2: #DC2626;
            --accent-light: #3B82F6;
            --accent-dim: rgba(59, 130, 246, 0.12);
            --border: rgba(255, 255, 255, 0.08);
            --font-sans: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-serif: 'Newsreader', Georgia, serif;
            --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
        body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
        a { color: inherit; text-decoration: none; }

        /* Floating pill nav */
        header { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; }
        .header-inner {
            display: flex; align-items: center; gap: 36px;
            background: rgba(0, 0, 0, 0.34);
            backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6);
            border-radius: 999px;
            padding: 10px 14px 10px 10px;
        }
        .logo {
            width: 44px; height: 44px; border-radius: 50%;
            background: rgba(255, 255, 255, 0.1); color: var(--text-primary);
            display: flex; align-items: center; justify-content: center;
            font-weight: 600; font-size: 15px; letter-spacing: normal;
            transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .logo:hover { transform: scale(1.08); }
        nav { display: flex; gap: 26px; align-items: center; }
        nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); transition: color .15s cubic-bezier(0.4, 0, 0.2, 1), transform .15s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block; }
        nav a:hover { color: var(--text-primary); transform: translateY(-1px); }
        nav a.active { color: var(--text-primary); }
        nav .nav-contact {
            background: var(--text-primary); color: var(--bg-primary);
            padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600;
            border: none; cursor: pointer;
            transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1);
        }
        nav .nav-contact:hover { transform: scale(1.05); }
        .nav-contact-group { position: relative; }
        .nav-contact-panel {
            position: absolute; top: 100%; right: 0; margin-top: 10px; min-width: 150px;
            display: flex; flex-direction: column; gap: 2px; padding: 8px;
            background: rgba(22, 23, 26, 0.95); border: 1px solid var(--border); border-radius: 16px;
            opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
            transition: opacity .15s ease, transform .15s ease, visibility .15s;
        }
        .nav-contact-group:hover .nav-contact-panel,
        .nav-contact-group:focus-within .nav-contact-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
        .nav-contact-panel a { padding: 8px 10px; border-radius: 10px; }
        .nav-contact-panel a:hover { background: rgba(255,255,255,0.06); transform: none; }

        .case-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

        /* Hero: matches the shared case-study content-card hero */
        .case-hero { position: relative; margin-top: 108px; border-radius: 32px; overflow: hidden; border: 1px solid var(--border); }
        .case-hero-media { position: relative; height: 380px; overflow: hidden; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
        .case-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
        .case-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0.1) 0%, rgba(10,10,11,0.8) 100%); }
        .case-hero-content { position: relative; padding: 72px 56px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
        .case-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 28px; transition: color .2s; }
        .case-back:hover { color: var(--text-primary); }
        .case-back svg { width: 16px; height: 16px; }
        .case-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-tertiary); }
        .case-tags .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
        .case-tags .dot:nth-child(3) { opacity: 0.7; }
        .case-hero h1 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 20px; }
        .case-hero h1 .line2 { display: block; color: var(--accent); }
        .case-hero .lede { font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 620px; }

        .case-meta-strip { display: flex; flex-wrap: wrap; gap: 28px; border: 1px solid var(--border); border-radius: 20px; padding: 24px 32px; margin: 20px 0; background: rgba(22, 23, 26, 0.6); }
        .case-meta-item { display: flex; flex-direction: column; gap: 6px; }
        .case-meta-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }
        .case-meta-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

        /* Story panels */
        .story-panel { padding: 48px 0; }
        .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; }
        .phase-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
        .phase-num { font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1; }
        .phase-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-tertiary); }
        .phase-1 .phase-num { color: var(--accent); }
        .phase-2 .phase-num { color: var(--accent-2); }
        .phase-3 .phase-num { color: var(--accent); }
        .story-panel h2 {
            font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
            font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--text-primary); margin-bottom: 24px;
        }
        .story-panel h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--text-primary); margin-top: 48px; margin-bottom: 16px; }
        .story-panel p { font-size: 17px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; max-width: 880px; }
        .story-panel ul { margin-bottom: 24px; padding-left: 24px; }
        .story-panel li { font-size: 17px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 12px; }

        .callout { background: var(--accent-dim); border-left: 3px solid var(--accent); padding: 20px 24px; margin: 32px 0; border-radius: 0 8px 8px 0; }
        .callout p { font-size: 16px; font-style: italic; color: var(--text-secondary); margin: 0; max-width: none; }

        .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; }
        .metric-card { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
        .metric-value { font-family: var(--font-serif); font-size: 36px; font-weight: 400; color: var(--accent); margin-bottom: 4px; }
        .metric-label { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

        .full-image { margin: 48px 0; }
        .full-image img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
        .full-image figcaption { font-size: 13px; color: var(--text-tertiary); text-align: center; margin-top: 16px; }

        .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 40px 0; }
        .feature-card { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
        .feature-icon { width: 40px; height: 40px; background: var(--accent-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
        .feature-icon svg { width: 20px; height: 20px; color: var(--accent); }
        .feature-card h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
        .feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; max-width: none; }

        .insight-grid { display: grid; gap: 16px; margin: 40px 0; }
        .insight-card { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
        .insight-number { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
        .insight-title { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
        .insight-text { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

        .reflection-list { list-style: none; padding: 0; margin: 32px 0; }
        .reflection-list li { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
        .reflection-list li:last-child { border-bottom: none; }
        .reflection-icon { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
        .reflection-content h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
        .reflection-content p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin: 0; max-width: none; }

        footer { border-top: 1px solid var(--border); margin-top: 24px; }
        .footer-inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
        .footer-name { font-weight: 700; font-size: 14px; }
        .footer-status { font-size: 13px; color: var(--text-tertiary); }
        .footer-links { display: flex; gap: 24px; }
        .footer-links a { font-size: 13px; color: var(--text-secondary); }
        .footer-links a:hover { color: var(--accent); }

        @media (max-width: 1024px) {
            .metrics-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .header-inner { gap: 16px; padding: 8px 10px 8px 8px; }
            nav { gap: 14px; }
            nav > a:not(.active) { display: none; }
            .case-hero { margin-top: 96px; border-radius: 24px; }
            .case-hero-media { height: 220px; }
            .case-hero-content { padding: 40px 24px; }
            .case-meta-strip { padding: 20px; gap: 20px; border-radius: 16px; }
            .story-panel { padding: 32px 0; }
            .metrics-grid { grid-template-columns: 1fr 1fr; }
            .feature-grid { grid-template-columns: 1fr; }
            .footer-inner { flex-direction: column; text-align: center; }
        }

        /* Dashboard component explorer */
        .dashboard-explorer { width: 100%; max-width: 100%; margin: 40px 0 56px; }
        .dashboard-explorer-grid { display: grid; gap: 16px; }
        .dashboard-stage-scroll { width: 100%; }
        .dashboard-stage { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-dark); }
        .dashboard-stage img { display: block; width: 100%; height: auto; }
        .dashboard-hotspot {
            position: absolute; z-index: 2; border: 1px solid transparent; border-radius: 2px;
            background: transparent; cursor: pointer;
            transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
        }
        .dashboard-hotspot::after {
            content: attr(data-short-label); position: absolute; top: 6px; left: 6px;
            max-width: calc(100% - 12px); padding: 4px 7px; border-radius: 3px;
            background: var(--accent); color: #FFFFFF; font-family: var(--font-sans);
            font-size: 9px; font-weight: 600; line-height: 1.2; opacity: 0; pointer-events: none;
            transition: opacity 180ms ease;
        }
        .dashboard-explorer.has-selection .dashboard-hotspot { background: rgba(5, 6, 10, 0.64); }
        .dashboard-hotspot:hover, .dashboard-hotspot:focus-visible, .dashboard-hotspot.is-active {
            z-index: 3; border-color: var(--accent-light); box-shadow: inset 0 0 0 1px var(--accent-light); outline: none;
        }
        .dashboard-explorer.has-selection .dashboard-hotspot.is-active { background: rgba(59, 130, 246, 0.1); }
        .dashboard-hotspot:hover::after, .dashboard-hotspot:focus-visible::after, .dashboard-hotspot.is-active::after { opacity: 1; }
        .dashboard-region-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
        .dashboard-region-button {
            display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px;
            border: 0; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
            background: transparent; color: var(--text-secondary); font-family: var(--font-sans);
            font-size: 12px; font-weight: 500; text-align: left; cursor: pointer;
            transition: color 180ms ease, background 180ms ease;
        }
        .dashboard-region-button::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid var(--text-tertiary); border-radius: 50%; }
        .dashboard-region-button:hover { color: var(--text-primary); }
        .dashboard-region-button:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
        .dashboard-region-button.is-active { color: var(--accent); background: var(--accent-dim); }
        .dashboard-region-button.is-active::before { border-color: var(--accent); background: var(--accent); }
        .dashboard-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 330px; margin-top: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
        .dashboard-detail-visual { min-height: 330px; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-dark); }
        .dashboard-detail-visual img { display: block; width: 100%; max-height: 310px; object-fit: contain; border-radius: 4px; }
        .dashboard-detail-copy { padding: 28px; }
        .dashboard-detail-kicker { display: block; margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
        .dashboard-detail-copy h4 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; }
        .dashboard-detail-copy > p { margin-bottom: 20px; font-size: 15px; line-height: 1.7; max-width: none; }
        .dashboard-detail-points { display: grid; gap: 16px; }
        .dashboard-detail-point { padding-top: 14px; border-top: 1px solid var(--border); }
        .dashboard-detail-point strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
        .dashboard-detail-point span { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
        .dashboard-caption { margin-top: 10px; color: var(--text-tertiary); font-size: 12px; }
        .supporting-workflows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 48px; }
        .supporting-workflow { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
        .supporting-workflow img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-dark); }
        .supporting-workflow-copy { padding: 20px; }
        .supporting-workflow h4 { margin-bottom: 8px; font-size: 15px; }
        .supporting-workflow p { margin: 0; font-size: 14px; line-height: 1.65; max-width: none; }
        @media (max-width: 820px) {
            .dashboard-stage-scroll { max-width: 100%; overflow: hidden; }
            .dashboard-stage { width: 100%; min-width: 0; }
            .dashboard-region-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .dashboard-region-button { min-height: 44px; padding: 10px 8px; }
            .dashboard-detail { grid-template-columns: 1fr; }
            .dashboard-detail-visual { min-height: 220px; }
            .supporting-workflows { grid-template-columns: 1fr; }
            .dashboard-hotspot::after { display: none; }
        }
        @media (prefers-reduced-motion: reduce) {
            .dashboard-hotspot, .dashboard-hotspot::after, .dashboard-region-button { transition: none; }
        }
