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

        :root {
            --bg-primary: #0a0a0b;
            --bg-secondary: #111113;
            --bg-tertiary: #18181b;
            --bg-card: #141416;
            --border: #27272a;
            --border-subtle: #1e1e21;
            --text-primary: #e4e4e7;
            --text-secondary: #a1a1aa;
            --text-muted: #888892;
            --accent: #8b9bb0;
            --accent-dim: rgba(139, 155, 176, 0.08);
            --white: #fafafa;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Barlow', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.7;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ─── NAVIGATION ─── */

        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 1.25rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(10, 10, 11, 0.85);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-subtle);
            transition: all 0.3s ease;
        }

        nav.scrolled {
            padding: 0.9rem 3rem;
        }

        .nav-brand {
            font-family: 'Barlow Condensed', sans-serif;
            font-weight: 600;
            font-size: 1.3rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--white);
            text-decoration: none;
        }

        .nav-brand span {
            font-weight: 400;
            color: var(--text-secondary);
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            font-weight: 400;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .nav-toggle span {
            display: block;
            width: 20px;
            height: 1.5px;
            background: var(--text-secondary);
            margin: 5px 0;
            transition: all 0.3s ease;
        }

        /* ─── LAYOUT ─── */

        section {
            padding: 7rem 3rem;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
        }

        /* ─── HERO ─── */

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 5rem;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 155, 176, 0.04), transparent),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 155, 176, 0.02), transparent);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            font-weight: 400;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .hero-label::before {
            content: '';
            display: block;
            width: 32px;
            height: 1px;
            background: var(--accent);
        }

        .hero h1 {
            font-family: 'Barlow Condensed', sans-serif;
            font-weight: 600;
            font-size: clamp(2.8rem, 6vw, 4.5rem);
            line-height: 1.1;
            color: var(--white);
            margin-bottom: 2rem;
            max-width: 800px;
        }

        .hero p {
            font-size: 1.1rem;
            font-weight: 300;
            color: var(--text-secondary);
            max-width: 580px;
            line-height: 1.8;
            margin-bottom: 3rem;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-primary);
            text-decoration: none;
            padding: 0.9rem 2rem;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .hero-cta:hover {
            border-color: var(--text-muted);
            background: var(--accent-dim);
        }

        .hero-cta svg {
            width: 14px;
            height: 14px;
            transition: transform 0.3s ease;
        }

        .hero-cta:hover svg {
            transform: translateX(3px);
        }

        /* ─── SECTION HEADERS ─── */

        .section-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 400;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .section-title {
            font-family: 'Barlow Condensed', sans-serif;
            font-weight: 600;
            font-size: clamp(1.8rem, 3.5vw, 2.6rem);
            color: var(--white);
            margin-bottom: 1.5rem;
            line-height: 1.15;
        }

        .section-desc {
            font-size: 1.05rem;
            font-weight: 300;
            color: var(--text-secondary);
            max-width: 620px;
            line-height: 1.8;
        }

        .section-sub-label {
            font-family: 'Barlow Condensed', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent);
            margin-top: 3.5rem;
            margin-bottom: -2rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-subtle);
        }

        /* ─── DIVIDER ─── */

        .divider {
            border: none;
            height: 1px;
            background: var(--border-subtle);
            margin: 0 3rem;
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ─── ABOUT ─── */

        .about {
            background: var(--bg-secondary);
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-top: 3.5rem;
        }

        .about-text p {
            color: var(--text-secondary);
            font-weight: 300;
            margin-bottom: 1.5rem;
            line-height: 1.85;
        }

        .about-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-content: start;
            padding-top: 0.5rem;
        }

        .stat {
            padding: 1.5rem;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
        }

        .stat-number {
            font-family: 'Barlow Condensed', sans-serif;
            font-size: 2.2rem;
            font-weight: 600;
            color: var(--white);
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 400;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* ─── SERVICES ─── */

        .services-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 3.5rem;
        }

        .service-card {
            padding: 2.5rem;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            transition: all 0.3s ease;
        }

        .service-card:hover {
            border-color: var(--border);
            background: var(--bg-tertiary);
        }

        .service-index {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 400;
            color: var(--text-muted);
            letter-spacing: 0.1em;
            margin-bottom: 1.25rem;
        }

        .service-card h3 {
            font-family: 'Barlow Condensed', sans-serif;
            font-weight: 600;
            font-size: 1.35rem;
            color: var(--white);
            margin-bottom: 1rem;
            letter-spacing: 0.02em;
        }

        .service-card p {
            font-size: 0.92rem;
            font-weight: 300;
            color: var(--text-secondary);
            line-height: 1.8;
        }

        .service-card .service-tags {
            margin-top: 1.25rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .service-tag {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 400;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 0.3rem 0.7rem;
            border: 1px solid var(--border-subtle);
        }

        .service-card-wide {
            grid-column: 1 / -1;
        }

        .service-note {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            font-weight: 400;
            color: var(--text-muted);
            margin-top: 1.25rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-subtle);
            font-style: italic;
        }

        .service-note a {
            color: var(--accent);
            font-style: normal;
            text-decoration: none;
        }

        .service-note a:hover {
            text-decoration: underline;
        }

        .aside-note {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            font-weight: 400;
            color: var(--text-muted);
            font-style: italic;
            margin-top: 1.5rem;
        }

        .aside-note a {
            color: var(--accent);
            font-style: normal;
        }

        /* ─── APPROACH ─── */

        .approach {
            background: var(--bg-secondary);
        }

        .approach-items {
            margin-top: 3.5rem;
            display: grid;
            gap: 0;
        }

        .approach-item {
            display: grid;
            grid-template-columns: 80px 1fr;
            gap: 2.5rem;
            padding: 2rem 0;
            border-bottom: 1px solid var(--border-subtle);
            align-items: start;
        }

        .approach-item:first-child {
            border-top: 1px solid var(--border-subtle);
        }

        .approach-num {
            font-family: 'Barlow Condensed', sans-serif;
            font-size: 1.8rem;
            font-weight: 300;
            color: var(--text-muted);
        }

        .approach-item h3 {
            font-family: 'Barlow Condensed', sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 0.6rem;
            letter-spacing: 0.02em;
        }

        .approach-item p {
            font-size: 0.92rem;
            font-weight: 300;
            color: var(--text-secondary);
            line-height: 1.8;
            max-width: 600px;
        }

        /* ─── CONTACT ─── */

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-top: 3.5rem;
        }

        .contact-info p {
            color: var(--text-secondary);
            font-weight: 300;
            margin-bottom: 1.5rem;
            line-height: 1.85;
        }

        .contact-email {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            color: var(--text-primary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .contact-email:hover {
            border-color: var(--text-muted);
            color: var(--white);
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .form-group label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 400;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .form-group input,
        .form-group textarea {
            font-family: 'Barlow', sans-serif;
            font-size: 0.95rem;
            font-weight: 300;
            color: var(--text-primary);
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            padding: 0.85rem 1rem;
            outline: none;
            transition: border-color 0.3s ease;
            width: 100%;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--text-muted);
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .form-group textarea {
            min-height: 140px;
            resize: vertical;
        }

        .form-submit {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-primary);
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 0.9rem 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            align-self: flex-start;
        }

        .form-submit:hover {
            border-color: var(--text-muted);
            background: var(--bg-tertiary);
        }

        .form-status {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            color: var(--accent);
            margin-top: 0.5rem;
            min-height: 1.2em;
        }

        /* ─── FOOTER ─── */

        footer {
            padding: 2.5rem 3rem;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-brand {
            font-family: 'Barlow Condensed', sans-serif;
            font-weight: 500;
            font-size: 0.85rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .footer-copy {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        /* ─── RESPONSIVE ─── */

        @media (max-width: 900px) {
            nav {
                padding: 1rem 1.5rem;
            }

            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                background: rgba(10, 10, 11, 0.95);
                backdrop-filter: blur(20px);
                padding: 1.5rem;
                gap: 1.25rem;
                border-bottom: 1px solid var(--border-subtle);
            }

            .nav-links.open {
                display: flex;
            }

            .nav-toggle {
                display: block;
            }

            section {
                padding: 4.5rem 1.5rem;
            }

            .about-grid,
            .services-grid,
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }

            .about-stats {
                grid-template-columns: 1fr 1fr;
            }

            .approach-item {
                grid-template-columns: 50px 1fr;
                gap: 1.5rem;
            }

            footer {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
                padding: 2rem 1.5rem;
            }

            .hero {
                padding-top: 6rem;
            }
        }

        @media (max-width: 500px) {
            .about-stats {
                grid-template-columns: 1fr;
            }
        }

        /* ─── 360PX / SMALL MOBILE ─── */

        @media (max-width: 400px) {
            section {
                padding: 3.5rem 1rem;
            }

            nav {
                padding: 1rem;
            }

            .hero h1 {
                font-size: 2.4rem;
            }

            footer {
                padding: 1.75rem 1rem;
            }
        }

        /* ─── TABLET 600–900 (768px portrait) ─── */

        @media (min-width: 600px) and (max-width: 900px) {
            .services-grid {
                grid-template-columns: 1fr 1fr;
            }

            .about-grid,
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }
        }

        /* ─── SKIP LINK ─── */

        .skip-link {
            position: absolute;
            top: -999px;
            left: -999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
            z-index: 9999;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            letter-spacing: 0.05em;
            text-decoration: none;
            color: var(--white);
            background: var(--bg-primary);
            border: 1px solid var(--accent);
            padding: 0.75rem 1.25rem;
            white-space: nowrap;
        }

        .skip-link:focus {
            position: fixed;
            top: 1rem;
            left: 1rem;
            width: auto;
            height: auto;
            overflow: visible;
        }

        /* ─── VISIBLE FOCUS STYLES ─── */

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

        a:focus-visible,
        button:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
        }

        /* ─── PREFERS REDUCED MOTION ─── */

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

/* ============================================================
   Lab post components — shared across blog entries.
   Additive only: none of these class names existed before, so
   nothing on the marketing pages is affected.
   ============================================================ */

.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.verdict { border: 1px solid var(--border-subtle); background: var(--bg-secondary); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.verdict-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.verdict-metric { font-family: 'Barlow Condensed', sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.verdict-what { font-size: 0.88rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); }
.v-no .verdict-metric { color: var(--text-muted); }

.trace { border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent); background: var(--bg-secondary); padding: 1.5rem; margin: 1.6rem 0; }
.trace-line { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; line-height: 2; color: var(--text-secondary); }
.trace-line b { color: var(--white); font-weight: 500; }
.trace-line .tok { color: var(--accent); }
.trace-note { font-size: 0.92rem; font-weight: 300; line-height: 1.8; color: var(--text-secondary); margin: 1rem 0 0; }

.ladder { border: 1px solid var(--border-subtle); background: var(--bg-secondary); margin: 1.6rem 0; }
.rung { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--border-subtle); }
.rung:last-child { border-bottom: none; }
.rung-bar-cell { flex: 0 0 clamp(70px, 22vw, 210px); display: flex; }
.rung-bar { height: 8px; background: var(--accent); opacity: 0.75; min-width: 2px; }
.rung-label { flex: 1; min-width: 140px; font-size: 0.9rem; font-weight: 300; color: var(--text-secondary); }
.rung-val { font-family: 'IBM Plex Mono', monospace; font-size: 0.86rem; font-variant-numeric: tabular-nums; width: 4.4rem; text-align: right; color: var(--text-muted); }
.rung.is-best .rung-val, .rung.is-best .rung-label { color: var(--white); }
.rung.is-best .rung-bar { opacity: 1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); background: var(--bg-secondary); margin: 1.6rem 0; }
table.ledger { border-collapse: collapse; width: 100%; min-width: 560px; }
table.ledger th { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.ledger td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; font-weight: 300; color: var(--text-secondary); vertical-align: top; }
table.ledger tr:last-child td { border-bottom: none; }
table.ledger td.eid { font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-size: 0.82rem; white-space: nowrap; }
table.ledger td.figure { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-size: 0.82rem; }

.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.mini-card { border: 1px solid var(--border-subtle); background: var(--bg-secondary); padding: 1.4rem; }
.mini-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; color: var(--white); margin: 0 0 0.6rem; line-height: 1.15; }
.mini-card p { font-size: 0.9rem; margin: 0; }

/* Ordered stack — for content where the numbering is real (e.g. a layered
   architecture), never as decoration on an unordered list. */
.stack { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border-subtle); background: var(--bg-secondary); margin: 1.6rem 0; }
.stack-row { display: flex; gap: 1.2rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--border-subtle); }
.stack-row:last-child { border-bottom: none; }
.stack-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--accent); flex: none; padding-top: 0.28rem; letter-spacing: 0.08em; }
.stack-body { flex: 1; min-width: 0; }
.stack-body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; color: var(--white); margin: 0 0 0.5rem; line-height: 1.15; }
.stack-body p { font-size: 0.9rem; font-weight: 300; line-height: 1.8; color: var(--text-secondary); margin: 0 0 0.55rem; }
.stack-body p:last-child { margin-bottom: 0; }
.svc { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--white); background: var(--accent-dim); border: 1px solid var(--border); padding: 0.1rem 0.45rem; margin-right: 0.3rem; }

/* ============================================================
   Interior pages — carry the homepage's compact editorial rhythm
   through the blog index, lab notes, and contact page.
   ============================================================ */

main > .hero:not(.home-hero) {
    min-height: 0 !important;
    padding-top: clamp(8rem, 13vw, 10rem);
    padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

main > .hero:not(.home-hero) .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

main > .hero:not(.home-hero) .hero-label {
    margin-bottom: 1.15rem;
}

main > .hero:not(.home-hero) h1,
main > .hero:not(.home-hero) .post-title {
    font-size: clamp(3rem, 7vw, 5.25rem);
    letter-spacing: -0.025em;
    max-width: 900px;
    margin-bottom: 1rem;
}

main > .hero:not(.home-hero) p,
main > .hero:not(.home-hero) .post-subtitle {
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.75;
    max-width: 760px;
    margin-bottom: 0;
}

main > .hero:not(.home-hero) .post-meta {
    max-width: 820px;
}

main > .hero:not(.home-hero) .post-status {
    justify-self: start;
    margin-top: 1.1rem;
}

main > .hero:not(.home-hero) ~ section {
    padding-top: clamp(2.75rem, 5vw, 4rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

main > .hero:not(.home-hero) + .divider {
    margin-top: 0;
}

/* Blog index: a compact field-note ledger instead of a loose card stack. */
body .blog-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: none;
    margin-top: 0;
    border: 1px solid var(--border);
    background: var(--border);
}

body .blog-index-grid .blog-card {
    border: 0;
    background: var(--bg-primary);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    min-height: 290px;
    transition: background 0.2s ease;
}

body .blog-index-grid .blog-card:hover {
    background: var(--bg-secondary);
}

body .blog-index-grid .blog-card:first-child {
    grid-column: 1 / -1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    column-gap: clamp(2rem, 7vw, 6rem);
}

body .blog-index-grid .blog-card:first-child .blog-kicker,
body .blog-index-grid .blog-card:first-child .blog-card-meta {
    grid-column: 1;
}

body .blog-index-grid .blog-card:first-child h2,
body .blog-index-grid .blog-card:first-child p,
body .blog-index-grid .blog-card:first-child .blog-link {
    grid-column: 2;
}

body .blog-index-grid .blog-card h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.55rem);
    margin-bottom: 0.7rem;
}

body .blog-index-grid .blog-card p {
    line-height: 1.7;
    margin-bottom: 0;
}

body .blog-index-grid .blog-card .blog-link {
    align-self: flex-start;
    margin-top: auto;
    padding: 1.2rem 0 0;
    border: 0;
    border-bottom: 1px solid var(--border);
}

body .blog-index-grid .blog-card:first-child .blog-link {
    justify-self: start;
}

/* Articles: keep the readable measure, remove the oversized outer void. */
body .blog-layout {
    max-width: 920px;
    margin-top: 0;
    gap: 1px;
}

body .blog-layout > .blog-article,
body .blog-layout > .blog-update {
    padding: clamp(1.6rem, 4.5vw, 3.5rem);
}

body .blog-article h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    margin-top: 2.25rem;
}

body .blog-article h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

body .blog-article p,
body .blog-article li {
    line-height: 1.78;
}

body .blog-article .return-link {
    padding: 0.8rem 0;
    border: 0;
    border-bottom: 1px solid var(--border);
}

body .data-figure,
body .table-wrap,
body .trace,
body .ladder,
body .two-col,
body .stack,
body pre.code {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
}

/* Contact: one cohesive panel with the same grid-and-rule language. */
main > .hero:not(.home-hero) ~ section .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 0;
    margin-top: 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

main > .hero:not(.home-hero) ~ section .contact-info,
main > .hero:not(.home-hero) ~ section .contact-form {
    padding: clamp(1.75rem, 4.5vw, 3.5rem);
}

main > .hero:not(.home-hero) ~ section .contact-info {
    border-right: 1px solid var(--border);
}

main > .hero:not(.home-hero) ~ section .contact-form {
    gap: 1rem;
    background: var(--bg-primary);
}

main > .hero:not(.home-hero) ~ section .form-group input,
main > .hero:not(.home-hero) ~ section .form-group textarea {
    background: var(--bg-card);
}

main > .hero:not(.home-hero) ~ section .form-group textarea {
    min-height: 120px;
}

@media (max-width: 760px) {
    body .blog-index-grid {
        grid-template-columns: 1fr;
    }

    body .blog-index-grid .blog-card:first-child {
        grid-column: auto;
        display: flex;
    }

    body .blog-index-grid .blog-card {
        min-height: 0;
    }

    body .blog-index-grid .blog-card .blog-link {
        margin-top: 1.25rem;
    }

    main > .hero:not(.home-hero) ~ section .contact-grid {
        grid-template-columns: 1fr;
    }

    main > .hero:not(.home-hero) ~ section .contact-info {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 500px) {
    main > .hero:not(.home-hero) {
        padding-top: 7.5rem;
        padding-bottom: 2.5rem;
    }

    main > .hero:not(.home-hero) h1,
    main > .hero:not(.home-hero) .post-title {
        font-size: clamp(2.75rem, 15vw, 3.75rem);
    }

    body .blog-layout > .blog-article,
    body .blog-layout > .blog-update {
        padding: 1.35rem;
    }
}
