/* ============================================================
   janclab — Instrument shell, one live toy per project.

   Ported from the verified home-page mockup (design chosen 2026-07-30, see
   `.plan/portfolio-plan.md` → "CHOSEN — Instrument shell, one live toy per project").
   Warm graphite, hairline panel grid, mono tabular readouts. Single theme by
   choice: this is a lit panel, not a document.

   Everything below the "toy kit" divider is the shared vocabulary each toy
   renders into — see `assets/js/toys/README.md`.
   ============================================================ */

:root {
    --bezel: #0D100F;
    --panel: #151A18;
    --panel2: #1B2220;
    --etch: #232C29;
    --chalk: #DCE6E1;
    --mute: #778883;

    /* Four domain accents. Each project panel sets --k to one of them
       (see janclab_domain_accent() in functions.php); every control, gauge and
       readout inside the panel inherits from --k. */
    --ai: #FFB020;
    --home: #4FD1C5;
    --game: #FF7A5C;
    --auto: #8FCB7A;

    /* System stacks, exactly as the verified mockup. No webfont is loaded, so
       there is no font swap and no render-blocking request. */
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --gap: clamp(1.4rem, 3vw, 2.2rem);
    --pad: clamp(1rem, 3vw, 2.2rem);
}

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

body {
    margin: 0;
    background: var(--bezel);
    color: var(--chalk);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, svg, canvas { max-width: 100%; }

/* ---------- shell ---------- */

.jl-shell {
    /* The mockup is full-bleed; the max-width only bites above ~1600px so an
       ultra-wide screen doesn't fan the grid into a dozen columns. */
    max-width: 1600px;
    margin-inline: auto;
    padding: var(--pad);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-height: 100vh;
}

.jl-main {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.jl-skip-link {
    position: absolute;
    left: -9999px;
}

.jl-skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    padding: .5rem .75rem;
    background: var(--panel);
    border: 1px solid var(--etch);
}

/* ---------- top bar ---------- */

.jl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--etch);
    padding-bottom: .85rem;
}

.jl-id {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none;
}

.jl-logo-mark {
    color: var(--chalk);
    display: block;
    flex: 0 0 auto;
    height: 2.9rem;
    width: 2.9rem;
}

.jl-logo-mark svg {
    display: block;
    fill: currentColor;
    height: 100%;
    overflow: visible;
    width: 100%;
}

.jl-logo-mark .jl-logo-accent {
    fill: var(--game);
}

.jl-id-copy,
.jl-id-main {
    display: block;
}

.jl-id small {
    display: block;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mute);
    font-weight: 400;
    margin-top: .15rem;
}

.jl-nav {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mute);
}

.jl-nav ul {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jl-nav a {
    text-decoration: none;
    transition: color .15s;
}

.jl-nav a:hover,
.jl-nav a:focus-visible,
.jl-nav .current-menu-item > a,
.jl-nav [aria-current] { color: var(--ai); }

/* ---------- hero ---------- */

.jl-hero {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.jl-hero h1 {
    font-size: clamp(1.6rem, 4.6vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 700;
    max-width: 20ch;
    text-wrap: balance;
    margin: 0;
}

.jl-hero h1 b { color: var(--ai); font-weight: 700; }

.jl-lede {
    max-width: 60ch;
    color: var(--mute);
    font-size: clamp(.9rem, 1.6vw, 1.02rem);
    margin: 0;
}

.jl-lede b { color: var(--chalk); font-weight: 500; }

/* ---------- proof strip (measured readouts) ---------- */

.jl-ro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--etch);
    border: 1px solid var(--etch);
}

.jl-ro > div {
    background: var(--panel);
    padding: .8rem .9rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.jl-ro .cap {
    font-family: var(--mono);
    font-size: .57rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mute);
}

.jl-ro .val {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.4rem, 3.6vw, 1.9rem);
    line-height: 1;
    color: var(--ai);
    letter-spacing: -.02em;
    text-shadow: 0 0 20px rgba(255, 176, 32, .3);
}

.jl-ro .val small {
    font-size: .42em;
    letter-spacing: .1em;
    color: var(--mute);
    text-shadow: none;
    margin-left: .3em;
}

.jl-ro .teal .val { color: var(--home); text-shadow: 0 0 20px rgba(79, 209, 197, .26); }

.jl-ticks { display: flex; gap: 2px; height: 6px; align-items: flex-end; color: var(--ai); }
.jl-ro .teal .jl-ticks { color: var(--home); }
.jl-ticks i { flex: 1; background: var(--etch); height: 2px; }
.jl-ticks i.on { background: currentColor; height: 6px; }

/* ---------- project grid ---------- */

.jl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1px;
    background: var(--etch);
    border: 1px solid var(--etch);
}

.jl-mod {
    background: var(--panel);
    padding: .95rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    min-width: 0;
    --k: var(--ai);
}

.jl-mod .head { display: flex; flex-direction: column; gap: .2rem; }

.jl-mod .dom {
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--k);
}

.jl-mod .ttl {
    font-size: .98rem;
    font-weight: 650;
    letter-spacing: -.02em;
    text-decoration: none;
}

.jl-mod .ttl:hover,
.jl-mod .ttl:focus-visible { color: var(--k); }

.jl-mod .say { font-size: .8rem; color: var(--mute); line-height: 1.45; margin: 0; }
.jl-mod .say b { color: var(--chalk); font-weight: 500; }

.jl-more {
    margin: 0;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.jl-more a { color: var(--mute); text-decoration: none; }
.jl-more a:hover, .jl-more a:focus-visible { color: var(--k); }

.jl-empty {
    background: var(--panel);
    border: 1px solid var(--etch);
    padding: 1.2rem;
    color: var(--mute);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.jl-empty a { color: var(--ai); }

.jl-more-block a {
    display: inline-block;
    border: 1px solid var(--etch);
    padding: .45rem .75rem;
}

.jl-more-block a:hover,
.jl-more-block a:focus-visible { border-color: var(--ai); }

/* ---------- breadcrumbs ---------- */

.jl-crumbs {
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mute);
}

.jl-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jl-crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--etch); }
.jl-crumbs a { text-decoration: none; }
.jl-crumbs a:hover, .jl-crumbs a:focus-visible { color: var(--ai); }
.jl-crumbs [aria-current] { color: var(--chalk); }

/* ---------- page + case heads ---------- */

.jl-head {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.jl-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4.2vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -.032em;
    font-weight: 700;
    max-width: 24ch;
    text-wrap: balance;
}

/* `--k` is only set on a panel or a case study; everywhere else the amber accent is the default. */
.jl-head .dom {
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--k, var(--ai));
}

.jl-case,
.jl-page {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* ---------- case-study rail ---------- */

.jl-rail-block .cap {
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mute);
}

/* ---------- case study ---------- */

.jl-case-toy {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--panel);
    border: 1px solid var(--etch);
    padding: .9rem 1rem 1rem;
}

.jl-case-toy .jl-toy { min-height: 200px; }

.jl-note {
    margin: 0;
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mute);
}

/* Metric strings are sentences, not numbers, so they get room and no amber glow. */
.jl-ro-metrics { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.jl-ro .val-text {
    font-size: clamp(.78rem, 2vw, .95rem);
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--k, var(--ai));
    text-shadow: none;
}

.jl-case-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
}

@media (min-width: 960px) {
    .jl-case-body { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
    .jl-rail { position: sticky; top: 1rem; }
}

/* ---------- prose ---------- */

.jl-prose {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-width: 0;
}

.jl-case-section {
    background: var(--panel);
    border: 1px solid var(--etch);
    padding: 1rem 1.1rem 1.2rem;
    min-width: 0;
}

.jl-case-section > h2 {
    margin: 0 0 .7rem;
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--k, var(--ai));
}

.jl-prose p,
.jl-prose li { font-size: .92rem; line-height: 1.65; }
.jl-prose p { margin: 0 0 .85rem; }
.jl-prose h3 { font-size: .96rem; letter-spacing: -.015em; margin: 1.2rem 0 .5rem; }
.jl-prose ul, .jl-prose ol { margin: 0 0 .85rem; padding-left: 1.15rem; }
.jl-prose li { margin-bottom: .3rem; }
.jl-prose strong, .jl-prose b { color: var(--k, var(--ai)); font-weight: 600; }
.jl-prose a { color: var(--k, var(--ai)); text-underline-offset: 3px; }
.jl-prose img { display: block; height: auto; }
.jl-prose blockquote {
    margin: 0 0 .85rem;
    padding-left: .9rem;
    border-left: 2px solid var(--k, var(--ai));
    color: var(--mute);
}
.jl-prose code {
    font-family: var(--mono);
    font-size: .85em;
    background: var(--bezel);
    border: 1px solid var(--etch);
    padding: .05em .35em;
}
.jl-prose pre {
    overflow-x: auto;
    background: var(--bezel);
    border: 1px solid var(--etch);
    padding: .8rem;
    font-size: .78rem;
}
.jl-prose pre code { background: none; border: 0; padding: 0; }
.jl-prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .85rem; }
.jl-prose th, .jl-prose td { border: 1px solid var(--etch); padding: .4rem .6rem; text-align: left; }
.jl-case-section > *:last-child { margin-bottom: 0; }

/* "The hard part" is the section that gets him hired — it is lit, not just another block. */
.jl-case-section.is-hard {
    border-color: var(--k, var(--ai));
    box-shadow: 0 0 34px -20px var(--k, var(--ai));
}

.jl-case-section.is-hard::before {
    content: "";
    display: block;
    height: 2px;
    background: var(--k, var(--ai));
    margin: -1rem -1.1rem 1rem;
}

.jl-case-section.is-hard > h2 { font-size: .7rem; }

/* ---------- case meta rail ---------- */

.jl-rail {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: var(--panel);
    border: 1px solid var(--etch);
    padding: 1rem 1.1rem 1.2rem;
    min-width: 0;
}

.jl-defs { margin: 0; display: flex; flex-direction: column; gap: .75rem; }

.jl-defs dt {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mute);
}

.jl-defs dd { margin: .2rem 0 0; font-size: .82rem; line-height: 1.45; }

.jl-rail-block { display: flex; flex-direction: column; gap: .5rem; }

.jl-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.jl-chips .jl-chip { font-size: .66rem; text-decoration: none; }

.jl-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }

.jl-links a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
    border: 1px solid var(--etch);
    padding: .4rem .55rem;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jl-links a:hover,
.jl-links a:focus-visible { border-color: var(--k, var(--ai)); color: var(--k, var(--ai)); }

.jl-links span {
    color: var(--mute);
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- media slots ---------- */

.jl-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: .8rem;
}

.jl-media figure { margin: 0; border: 1px solid var(--etch); background: var(--bezel); }
.jl-media img { display: block; width: 100%; height: auto; }

.jl-media figcaption {
    padding: .45rem .6rem;
    font-family: var(--mono);
    font-size: .57rem;
    letter-spacing: .1em;
    color: var(--mute);
}

/* Shown to the logged-in owner only — a visitor is never told what is missing. */
.jl-slot-hint {
    margin: 0;
    border: 1px dashed var(--etch);
    padding: .7rem .8rem;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mute);
}

/* ---------- /ai-engineering/ practice grid ---------- */

.jl-practice .jl-mod .ttl { margin: 0; font-size: 1rem; font-weight: 650; }
.jl-practice .jl-prose { display: block; }
.jl-practice .jl-prose p, .jl-practice .jl-prose li { font-size: .85rem; line-height: 1.6; }
.jl-practice .jl-prose > *:last-child { margin-bottom: 0; }

/* ---------- pagers ---------- */

.jl-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--etch);
    padding-top: 1rem;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mute);
}

.jl-pager a { text-decoration: none; }
.jl-pager a:hover, .jl-pager a:focus-visible { color: var(--ai); }
.jl-pager .nav-links { display: flex; gap: .9rem; flex-wrap: wrap; }
.jl-pager .screen-reader-text { position: absolute; left: -9999px; }

/* ============================================================
   Toy kit — the shared vocabulary every toy renders into.
   A toy owns the whole `[data-toy]` element and builds its stage, controls
   and readout from these classes. See assets/js/toys/README.md.
   ============================================================ */

.jl-toy {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    /* Reserved before mount so a toy appearing never shifts the panel (CLS). */
    min-height: 150px;
}

.jl-toy:empty::after,
.jl-toy[data-toy-state="idle"]::after,
.jl-toy[data-toy-state="loading"]::after,
.jl-toy[data-toy-state="error"]::after {
    content: "";
    flex: 1;
    background: var(--bezel);
    border: 1px solid var(--etch);
}

.jl-stage {
    background: var(--bezel);
    border: 1px solid var(--etch);
    position: relative;
    overflow: hidden;
}

.jl-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }

.jl-btn {
    font: inherit;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: var(--k);
    border: 1px solid var(--k);
    padding: .32rem .65rem;
    transition: background .15s, color .15s;
}

.jl-btn:hover { background: var(--k); color: var(--bezel); }
.jl-btn:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; }

.jl-read {
    font-family: var(--mono);
    font-size: .64rem;
    font-variant-numeric: tabular-nums;
    color: var(--mute);
    letter-spacing: .04em;
    margin-left: auto;
    text-align: right;
}

.jl-read b { color: var(--k); }

.jl-canvas { display: block; width: 100%; height: auto; touch-action: manipulation; }

.jl-chip {
    font: inherit;
    font-size: .69rem;
    cursor: pointer;
    background: var(--panel2);
    color: var(--chalk);
    border: 1px solid var(--etch);
    padding: .28rem .55rem;
    transition: border-color .15s, color .15s;
}

.jl-chip:hover { border-color: var(--k); color: var(--k); }
.jl-chip:focus-visible { outline: 2px solid var(--k); outline-offset: 2px; }

/* ---------- footer ---------- */

.jl-foot {
    border-top: 1px solid var(--etch);
    padding-top: 1rem;
    margin-top: auto;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mute);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.jl-foot a { text-decoration: none; }
.jl-foot a:hover, .jl-foot a:focus-visible { color: var(--ai); }
.jl-foot nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

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

/* ============================================================
   Editorial dark refresh

   A calmer, more professional expression of the instrument shell: editorial
   type and spacing lead; measured values and live toys remain the proof.
   ============================================================ */

:root {
    --bezel: #0B0E0D;
    --panel: #121715;
    --panel2: #181E1B;
    --etch: #29312E;
    --chalk: #EEF1EC;
    --mute: #89958F;
    --gap: clamp(1.8rem, 3.4vw, 3.4rem);
    --pad: clamp(1.1rem, 4vw, 4.5rem);
}

.jl-shell {
    max-width: 1440px;
}

:where(a, summary):focus-visible {
    outline: 2px solid var(--ai);
    outline-offset: 4px;
}

.jl-top {
    padding-bottom: 1.15rem;
}

.jl-id {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 500;
}

.jl-id-main {
    font-family: var(--sans);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1;
    text-transform: lowercase;
}

.jl-logo-mark {
    height: 3.15rem;
    width: 3.15rem;
}

.jl-id small {
    font-size: .56rem;
    letter-spacing: .16em;
    margin-top: .28rem;
}

.jl-nav {
    gap: 1.6rem;
    font-size: .64rem;
}

.jl-hero {
    gap: 1.6rem;
    padding: clamp(2.4rem, 6vw, 5.5rem) 0 clamp(2.2rem, 5vw, 4.6rem);
    border-bottom: 1px solid var(--etch);
}

.jl-hero h1 {
    max-width: 20ch;
    font-size: clamp(1.5rem, 3.8vw, 2.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.jl-hero h1 b {
    color: var(--ai);
    font-weight: 700;
}

.jl-lede {
    max-width: 64ch;
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.jl-ro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--etch);
}

.jl-ro > div {
    background: transparent;
    padding: 0 1.25rem 1.35rem;
    border-right: 1px solid var(--etch);
}

.jl-ro > div:first-child {
    padding-left: 0;
}

.jl-ro > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.jl-ro .cap {
    font-size: .54rem;
}

.jl-ro .val {
    color: var(--chalk);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    text-shadow: none;
}

.jl-ro .teal .val {
    color: var(--home);
    text-shadow: none;
}

.jl-ticks {
    opacity: .7;
}

.jl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
    background: transparent;
    border: 0;
}

.jl-mod {
    height: 100%;
    gap: .9rem;
    padding: clamp(1rem, 2vw, 1.45rem);
    border: 1px solid var(--etch);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .12);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.jl-mod:hover {
    border-color: #3A4541;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .18);
}

.jl-mod .head {
    gap: .35rem;
}

.jl-mod .dom {
    font-size: .54rem;
}

.jl-mod .ttl {
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    font-weight: 600;
}

.jl-mod .say {
    max-width: 58ch;
    font-size: .9rem;
    line-height: 1.62;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.jl-mod .jl-more {
    margin-top: auto;
}

.jl-project-poster {
    margin: 0;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border: 1px solid var(--etch);
    border-radius: 7px;
    background: var(--bezel);
}

.jl-project-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.jl-mod:hover .jl-project-poster img {
    transform: scale(1.018);
    filter: saturate(1.04) brightness(1.03);
}

.jl-live-cap {
    margin: .1rem 0 -.45rem;
    font-family: var(--mono);
    font-size: .52rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--k);
}

.jl-more {
    font-size: .58rem;
}

.jl-ro .val.val-text {
    font-size: clamp(.78rem, 1.1vw, .96rem);
    line-height: 1.45;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.jl-ro:not(.jl-ro-metrics) .val.val-text {
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.1;
}

.jl-ro-metrics > div {
    min-width: 0;
}

.jl-page-narrative > .jl-prose,
.jl-post > .jl-prose {
    width: min(100%, 58rem);
}

.jl-contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: 0 !important;
    list-style: none;
}

.jl-contact-links li {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--etch);
    border-radius: 7px;
    background: var(--bezel);
}

.jl-contact-links strong {
    display: block;
    margin-bottom: .25rem;
    font-size: 1rem;
}

.jl-practice > .jl-mod:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.jl-practice > .jl-mod:last-child:nth-child(odd) .jl-prose {
    max-width: 78ch;
}

@media (min-width: 1240px) {
    .jl-grid:not(.jl-practice) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .jl-case-body {
        grid-template-columns: minmax(0, 56rem) 17rem;
        justify-content: space-between;
    }
}

.jl-toy {
    min-height: var(--jl-toy-reserved-height, 180px);
    overflow-anchor: none;
}

.jl-stage,
.jl-toy:empty::after,
.jl-toy[data-toy-state="idle"]::after,
.jl-toy[data-toy-state="loading"]::after,
.jl-toy[data-toy-state="error"]::after {
    border-radius: 7px;
}

.jl-btn,
.jl-chip,
.jl-links a,
.jl-more-block a {
    border-radius: 3px;
}

.jl-case-toy,
.jl-case-section,
.jl-rail,
.jl-empty {
    border-radius: 10px;
}

.jl-case-section.is-hard {
    box-shadow: none;
}

@media (max-width: 899px) {
    .jl-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .jl-hero h1 {
        max-width: 20ch;
    }

    .jl-practice > .jl-mod:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    :root {
        --gap: 1.65rem;
        --pad: 1rem;
    }

    .jl-top {
        align-items: flex-start;
    }

    .jl-nav {
        width: 100%;
        gap: .6rem;
    }

    .jl-nav ul {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .jl-hero {
        gap: 1.25rem;
        padding: 2rem 0 2.2rem;
    }

    .jl-hero h1 {
        font-size: clamp(1.5rem, 8vw, 2.35rem);
        line-height: 1.05;
    }

    .jl-lede {
        font-size: .95rem;
        line-height: 1.68;
    }

    .jl-ro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jl-ro > div,
    .jl-ro > div:first-child,
    .jl-ro > div:last-child {
        padding: .9rem .8rem 1rem;
        border-right: 1px solid var(--etch);
        border-bottom: 1px solid var(--etch);
    }

    .jl-ro > div:nth-child(2n) {
        border-right: 0;
    }

    .jl-ro > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .jl-ro .val {
        font-size: 1.55rem;
    }

    .jl-mod {
        gap: .8rem;
        padding: 1rem;
        border-radius: 9px;
    }

    .jl-mod:hover {
        transform: none;
    }

    .jl-mod:hover .jl-project-poster img {
        transform: none;
        filter: none;
    }

    .jl-mod .ttl {
        font-size: 1.08rem;
    }

    .jl-contact-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .jl-toy {
        min-height: var(--jl-toy-reserved-height, 160px);
    }
}
