        /*
          westover.dev — "The Workbench"
          A maker's / engineer's workshop theme for James Westover's personal
          portfolio. Deliberately DISTINCT from the Westover Labs business brand
          (forest / ocean / spark): this is the person, at the bench.

          CSS is layered so it can later consume the shared WL responsive skin:
            (1) TOKENS      — :root custom properties (swap for shared tokens)
            (2) RESET/BASE  — mobile-first defaults
            (3) LAYOUT      — containers + fluid utilities
            (4) COMPONENTS  — nav, hero, cards, ticker, ...
            (5) THEME       — workshop motifs (mono voice, blueprint grid, LEDs)
            (6) RESPONSIVE  — min-width breakpoints (mobile-first, no h-overflow)
        */

        /* ── (1) TOKENS ───────────────────────────────────────────── */
        :root {
            /* surfaces — graphite workbench */
            --bg:        #0e1217;
            --bg-1:      #141a21;
            --bg-2:      #1a222b;
            --line:      #26313c;
            --line-lit:  #38454f;

            /* ink */
            --ink:       #eef1f4;
            --ink-2:     #a3afba;
            --ink-3:     #6b7885;

            /* accents — solder-brass (primary), blueprint-cyan, signal-green */
            --amber:     #e6a145;
            --amber-dim: #c98a3a;
            --cyan:      #52b6cc;
            --cyan-dim:  #3f95a9;
            --green:     #5bd6a4;

            --amber-faint: rgba(230, 161, 69, 0.10);
            --cyan-faint:  rgba(82, 182, 204, 0.09);
            --amber-glow:  rgba(230, 161, 69, 0.22);

            /* blueprint grid */
            --grid-minor: rgba(82, 182, 204, 0.045);
            --grid-major: rgba(230, 161, 69, 0.035);

            /* type */
            --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
            --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

            /* rhythm */
            --wrap: 1080px;
            --pad: clamp(1.1rem, 4vw, 1.5rem);
            --sec-y: clamp(3.75rem, 9vw, 6rem);
        }

        /* ── (2) RESET / BASE ─────────────────────────────────────── */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

        body {
            font-family: var(--sans);
            background:
                linear-gradient(var(--grid-minor) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
                linear-gradient(var(--grid-major) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
                var(--bg);
            background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px, auto;
            color: var(--ink);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden; /* hard guard against horizontal scroll */
        }

        img { max-width: 100%; height: auto; }
        a { color: inherit; }

        ::selection { background: var(--amber); color: #10130f; }

        /* ── (3) LAYOUT ───────────────────────────────────────────── */
        .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
        .wrap--narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }

        section { padding: var(--sec-y) 0; }

        hr.rule { border: none; border-top: 1px solid var(--line); }

        /* ── (4/5) COMPONENTS + THEME ─────────────────────────────── */

        /* mono "engineer voice" label — reads like a source comment */
        .label {
            font-family: var(--mono);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--amber);
            margin-bottom: 1.1rem;
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
        }
        .label::before {
            content: '//';
            color: var(--cyan);
            opacity: 0.8;
        }

        .section-title {
            font-size: clamp(1.6rem, 4.5vw, 2.5rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.12;
            color: var(--ink);
            margin-bottom: 1.1rem;
        }

        .section-body {
            font-size: clamp(1rem, 2.4vw, 1.0625rem);
            color: var(--ink-2);
            line-height: 1.75;
            max-width: 640px;
        }
        .section-body + .section-body { margin-top: 1.1rem; }

        /* ── Navigation ── */
        .workshop-nav {
            position: fixed;
            inset: 0 0 auto 0;
            z-index: 100;
            background: rgba(14, 18, 23, 0.86);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--line);
        }
        .nav-inner {
            max-width: var(--wrap);
            margin: 0 auto;
            padding: 0 var(--pad);
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .nav-logo {
            font-family: var(--mono);
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--ink);
            text-decoration: none;
            white-space: nowrap;
        }
        .nav-logo .prompt { color: var(--cyan); }
        .nav-links { display: none; gap: 1.75rem; list-style: none; align-items: center; }
        .nav-links a {
            font-size: 0.875rem;
            color: var(--ink-2);
            text-decoration: none;
            transition: color 0.15s;
        }
        .nav-links a:hover { color: var(--ink); }
        .nav-cta {
            font-family: var(--mono);
            font-size: 0.8rem !important;
            font-weight: 600;
            color: var(--amber) !important;
            border: 1px solid var(--amber);
            padding: 0.4rem 0.9rem;
            border-radius: 6px;
            transition: background 0.15s, color 0.15s;
        }
        .nav-cta:hover { background: var(--amber); color: #10130f !important; }

        /* ── Buttons ── */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            font-size: 0.9375rem;
            font-weight: 600;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, border-color 0.15s, color 0.15s;
            cursor: pointer;
            border: 1px solid transparent;
        }
        .btn-primary { background: var(--amber); color: #10130f; }
        .btn-primary:hover { background: #f0b25e; transform: translateY(-1px); box-shadow: 0 8px 22px var(--amber-glow); }
        .btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-lit); }
        .btn-ghost:hover { border-color: var(--cyan); color: var(--ink); }

        /* ── Hero ── */
        #hero { padding-top: clamp(6.5rem, 16vw, 9.5rem); padding-bottom: var(--sec-y); }

        .stamp {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            font-family: var(--mono);
            font-size: 0.75rem;
            letter-spacing: 0.04em;
            color: var(--cyan);
            border: 1px solid var(--line-lit);
            background: var(--cyan-faint);
            padding: 0.3rem 0.8rem;
            border-radius: 6px;
            margin-bottom: 1.75rem;
        }
        .stamp .led {
            width: 7px; height: 7px; border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 8px var(--green);
        }

        .hero-headline {
            font-size: clamp(2.3rem, 8vw, 4.4rem);
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 1.04;
            color: var(--ink);
            margin-bottom: 1.4rem;
            max-width: 15ch;
        }
        .hero-headline em {
            font-style: normal;
            background: linear-gradient(120deg, var(--amber) 0%, var(--cyan) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hero-sub {
            font-size: clamp(1.05rem, 2.8vw, 1.1875rem);
            color: var(--ink-2);
            line-height: 1.7;
            max-width: 600px;
            margin-bottom: 2rem;
        }
        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem 1rem;
            margin-bottom: 2.25rem;
            font-family: var(--mono);
            font-size: 0.82rem;
            color: var(--ink-3);
        }
        .hero-meta strong { color: var(--ink-2); font-weight: 500; }
        .hero-meta .sep { color: var(--line-lit); }

        .hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
        .hero-note {
            margin-top: 1.1rem;
            font-size: 0.875rem;
            color: var(--ink-3);
        }
        .hero-note a { color: var(--amber); text-decoration: none; }

        /* routes grid (fund / hire / engage) */
        .routes {
            margin-top: 2.25rem;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
            border-radius: 10px;
            overflow: hidden;
        }
        .route {
            display: block;
            padding: 1.15rem 1.25rem;
            background: var(--bg-1);
            color: var(--ink);
            text-decoration: none;
            transition: background 0.15s;
        }
        .route:hover { background: var(--bg-2); }
        .route strong { display: block; color: var(--amber); font-size: 0.95rem; margin-bottom: 0.3rem; }
        .route span { color: var(--ink-2); font-size: 0.9rem; }

        /* ── Stats ── */
        .stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            margin-top: 3rem;
        }
        .stat { padding: 1.6rem 1.25rem; background: var(--bg-1); text-align: center; }
        .stat-n {
            font-family: var(--mono);
            font-size: clamp(1.6rem, 5vw, 2.25rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--amber);
            line-height: 1;
            margin-bottom: 0.4rem;
        }
        .stat-l { font-size: 0.8rem; color: var(--ink-3); }

        /* ── Tease ticker ── */
        .ticker {
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            background: var(--bg-1);
            overflow: hidden;
            position: relative;
        }
        .ticker::before, .ticker::after {
            content: '';
            position: absolute; top: 0; bottom: 0; width: 12%;
            z-index: 2; pointer-events: none;
        }
        .ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
        .ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-1), transparent); }
        .ticker-tag {
            position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
            display: flex; align-items: center;
            padding: 0 0.9rem;
            font-family: var(--mono);
            font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
            color: var(--cyan);
            background: var(--bg-2);
            border-right: 1px solid var(--line);
        }
        .ticker-track {
            display: flex;
            gap: 2.5rem;
            white-space: nowrap;
            padding: 0.85rem 0 0.85rem 8.5rem;
            width: max-content;
            animation: ticker 34s linear infinite;
            font-family: var(--mono);
            font-size: 0.82rem;
            color: var(--ink-2);
        }
        .ticker:hover .ticker-track { animation-play-state: paused; }
        .ticker-track span { display: inline-flex; align-items: center; gap: 0.55rem; }
        .ticker-track span::before {
            content: ''; width: 6px; height: 6px; border-radius: 50%;
            background: var(--amber); opacity: 0.75;
        }
        @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

        /* ── 3-up grid (facets / publications) ── */
        .grid3 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            margin-top: 2.75rem;
        }
        .g3 { background: var(--bg-1); padding: 1.9rem 1.6rem; }
        .g3--hl { background: var(--bg-2); }
        .g3-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 0.9rem; }
        .g3 h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.7rem; letter-spacing: -0.02em; }
        .g3--hl h3 { color: var(--amber); }
        .g3 p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.65; }
        .g3 .kind { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.6rem; }
        .g3 a { color: var(--amber); text-decoration: none; }
        .g3 a:hover { text-decoration: underline; }

        /* ── Case studies ── */
        .cases {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            margin-top: 2.75rem;
        }
        .case { background: var(--bg-1); padding: 1.9rem 1.6rem; transition: background 0.2s; }
        .case:hover { background: var(--bg-2); }
        .case-co { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.55rem; }
        .case h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 1.1rem; line-height: 1.3; }
        .case-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.3rem; }
        .flabel { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.3rem; }
        .fval { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
        .case-out { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.6; padding-top: 1.1rem; border-top: 1px solid var(--line); }
        .case-out strong { color: var(--amber); font-weight: 600; }
        .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
        .tag {
            font-family: var(--mono);
            font-size: 0.72rem; color: var(--ink-3);
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--line);
            padding: 0.2rem 0.55rem; border-radius: 4px;
        }

        /* ── "Currently building" teaser (link into projects) ── */
        .build-teaser {
            margin-top: 2.75rem;
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.9rem;
        }
        .bt-card {
            display: flex; align-items: flex-start; gap: 0.9rem;
            padding: 1.15rem 1.25rem;
            background: var(--bg-1);
            border: 1px solid var(--line);
            border-radius: 10px;
        }
        .bt-led { flex-shrink: 0; margin-top: 0.35rem; width: 9px; height: 9px; border-radius: 50%; }
        .bt-led.shipped { background: var(--green); box-shadow: 0 0 8px var(--green); }
        .bt-led.building { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); animation: pulse 2s ease-in-out infinite; }
        .bt-led.platform { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
        .bt-card h4 { font-size: 0.98rem; color: var(--ink); margin-bottom: 0.2rem; }
        .bt-card .st { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
        .bt-card p { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.35rem; line-height: 1.55; }
        .build-more { margin-top: 1.5rem; }

        /* ── Tools strip ── */
        #tools { padding: clamp(2.75rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); }
        .tools-inner { display: flex; flex-direction: column; gap: 1.25rem; }
        .tools-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
        .chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
        .chip { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); padding: 0.34rem 0.8rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
        .chip--cred { color: var(--amber); border-color: var(--amber-dim); }

        /* ── Callout ── */
        .callout {
            background: var(--bg-2);
            border: 1px solid var(--line);
            border-left: 3px solid var(--amber);
            border-radius: 10px;
            padding: 1.9rem;
            margin-top: 2.25rem;
            max-width: 720px;
        }
        .callout h4 { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.1rem; }
        .callout p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.75; }
        .callout p + p { margin-top: 0.9rem; }
        .callout .btn { margin-top: 1.4rem; }

        /* ── Contact ── */
        #contact { background: var(--bg-1); border-top: 1px solid var(--line); }
        .contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
        .contact-q { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.25; margin-bottom: 1rem; }
        .contact-sub { font-size: 1rem; color: var(--ink-2); margin-bottom: 2.25rem; line-height: 1.7; }
        .contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }
        .contact-meta { display: flex; justify-content: center; gap: 1.25rem 2rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.82rem; }
        .contact-meta a { color: var(--ink-3); text-decoration: none; transition: color 0.15s; }
        .contact-meta a:hover { color: var(--amber); }

        /* ── Scroll animations (progressive enhancement: content is visible without JS and under reduced-motion) ── */
        .fade-in { opacity: 1; transform: none; }
        @media (prefers-reduced-motion: no-preference) {
            .js .fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
            .js .fade-in.visible { opacity: 1; transform: translateY(0); }
        }

        /* ── (6) RESPONSIVE — mobile-first min-width breakpoints ── */
        @media (min-width: 620px) {
            .stats { grid-template-columns: repeat(4, 1fr); }
            .case-row { grid-template-columns: 1fr 1fr; }
            .routes { grid-template-columns: repeat(3, 1fr); }
            .build-teaser { grid-template-columns: repeat(2, 1fr); }
            .tools-inner { flex-direction: row; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
        }
        @media (min-width: 900px) {
            .nav-links { display: flex; }
            .grid3 { grid-template-columns: repeat(3, 1fr); }
            .cases { grid-template-columns: repeat(2, 1fr); }
        }

        @media (prefers-reduced-motion: reduce) {
            .ticker-track { animation: none; padding-left: 8.5rem; }
            .bt-led.building { animation: none; }
            html { scroll-behavior: auto; }
        }
