/* --- self-hosted fonts (matches scrapyard-blog's convention) -----------
   Only the weights this site uses: Open Sans 400 (hero/display) + 600
   (in-content headings, labels, nav) as one variable-weight file; Lato 400
   (body) + 700, normal style only (no italic weights were loaded from the
   Google Fonts CDN either, so .gap-caption's font-style:italic keeps
   relying on browser-synthesized italic, same as before this migration). */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/open-sans/open-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/open-sans/open-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono/jetbrains-mono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono/jetbrains-mono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbfaf8; --text: #2f2a2b; --muted: #6b6360; --card-rest: #f6f4ef; --card: #f1efe9;
  --border: #e6e2dc; --border-rest: rgba(230, 226, 220, 0.72); --border-strong: #a88565;
  --link: #0e647c; --link-hover: #0f5e72; --link-deep: #0f4c5c; --green: #257953;
  --sandstone: #a88565; --sandstone-text: #816346; --meta: #5f7585;
  --rw-gauge-green: #306e52; --rw-gauge-sandstone: #a0856d;
  --rw-gauge-green-1: #487f66; --rw-gauge-green-2: #306e52; --rw-gauge-green-3: #2d6149; --rw-gauge-green-empty: #42735d;
  --rw-gauge-sandstone-1: #a0856d; --rw-gauge-sandstone-2: #967d67; --rw-gauge-sandstone-3: #8c7560; --rw-gauge-sandstone-empty: #a28d7a;
  --meta-strong: var(--meta);
  --micro-meta: rgba(95, 117, 133, 0.78);
  --greeble-faint: rgba(95, 117, 133, 0.54);
  --greeble-line: rgba(95, 117, 133, 0.24);
  --ink: #1e120a; --ink-rest: #3d3531; --error-text: #b8481e; --cyan: #2db8dd;
  --orange: #dd6031; --orange-text: #b8481e; --yellow: #ffe08a;
  --code-bg: #fff8e2; --code-text: #b8481e;
  --panel: #1e1b1c; --panel-border: #3a3436; --panel-text: #e8dfd0;
  --seg: color-mix(in srgb, var(--green) 75%, var(--bg));
  --seg-code: color-mix(in srgb, var(--sandstone) 75%, var(--bg));
  --font-head: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1b1c; --text: #e8dfd0; --muted: #a89a8f; --card-rest: #242021; --card: #2f2a2b;
    --border: #3a3436; --border-rest: rgba(58, 52, 54, 0.72); --border-strong: #c8a585;
    --link: #5aaec0; --link-hover: #2db8dd; --link-deep: #5aaec0; --green: #46ac7d;
    --sandstone: #c8a585; --sandstone-text: #c8a585; --meta: #93a7b5;
    --rw-gauge-green: #51a17c; --rw-gauge-sandstone: #c0a58d;
    --rw-gauge-green-1: #4b9170; --rw-gauge-green-2: #51a17c; --rw-gauge-green-3: #6baf90; --rw-gauge-green-empty: #5d6a64;
    --rw-gauge-sandstone-1: #ad947f; --rw-gauge-sandstone-2: #c0a58d; --rw-gauge-sandstone-3: #c9b39e; --rw-gauge-sandstone-empty: #847f7b;
    --meta-strong: #bcd0da;
    --micro-meta: rgba(147, 167, 181, 0.70);
    --greeble-faint: rgba(147, 167, 181, 0.48);
    --greeble-line: rgba(147, 167, 181, 0.20);
    --ink: #e8dfd0; --ink-rest: #bfb3a4; --error-text: #e0764c;
    --orange: #dd6031; --orange-text: #dd6031; --yellow: #ffe08a;
    --code-bg: #362f2b; --code-text: #c8a585;
    --panel: #2f2a2b;
    --seg: color-mix(in srgb, var(--green) 65%, var(--bg));
    --seg-code: color-mix(in srgb, var(--sandstone) 65%, var(--bg));
  }
}
* { box-sizing: border-box; }
/* Dark ink on cyan in BOTH themes — inheriting the theme's text color would
   break dark mode (warm paper on cyan reads ~1.76:1). */
::selection { background: var(--cyan); color: #1e120a; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 7vh 24px 12vh; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 2.9rem); margin: 0 0 .3rem; letter-spacing: -.01em; }
h2, h3 { font-weight: 600; }
.tagline { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  color: var(--text); margin: 0 0 .6rem; }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
a:hover { color: var(--link-hover); border-bottom-color: currentColor; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Prose links (G183): teal-vs-text contrast is ~2:1, below the 3:1 floor for
   color-only links, so links inside running text get an underline. Nav/chrome
   links keep the global `a` rule above (placement is the affordance there). */
.lede a, .ledger-item p a, .article-body p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lede { font-size: 1.08rem; margin: 0 0 2.8rem; max-width: 62ch; }
/* /writing — the curated Field Notes surface: narrow prose column, entries link out */
.writing-list{ margin-top:2.2rem; display:flex; flex-direction:column; gap:1.7rem; }
.writing-item h3{ margin:0 0 .15rem; font-size:1.05rem; font-weight:600; }
.writing-item h3 a{ color:var(--ink); text-decoration:underline; text-decoration-color:var(--sandstone); text-decoration-thickness:1px; text-underline-offset:4px; }
.writing-item h3 a:hover{ color:var(--link); text-decoration-color:var(--link); }
.writing-item p{ margin:.35rem 0 0; font-size:.95rem; line-height:1.55; }
.writing-pair{ margin:.5rem 0 0; font-size:.85rem; font-family:var(--font-head); font-weight:600; color:var(--muted); }
.writing-pair a{ color:var(--sandstone-text); }
.writing-pair a:hover{ color:var(--link); }
.pd-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; margin:0 .3rem 0 .15rem; vertical-align:1px; }
.pd-dot.discovery{ background:var(--green); }
.pd-dot.build{ background:var(--sandstone); }
.pd-dot.prototype{ background:var(--meta); }
.writing-standfirst{ font-size:1.12rem; color:var(--muted); }
/* Case-study header phase signature: the three phase tags with fill bars
   (discovery/prototype/build) from the work's coords, always visible. */
.phase-signature{ display:flex; gap:1.1rem; margin-top:.9rem; align-items:flex-end; }
.phase-signature .tagcol{ display:inline-flex; flex-direction:column; justify-content:flex-end; gap:5px; }
.phase-signature .seg{ display:block; width:100%; border-radius:3px 3px 0 0; height:calc(4px + var(--v) * 22px); opacity:calc(.4 + var(--v) * .55); }
.phase-signature .seg.discovery{ background:var(--green); }
.phase-signature .seg.prototype{ background:var(--meta); }
.phase-signature .seg.build{ background:var(--sandstone); }
.phase-signature .tag{ font-family:var(--font-head); font-weight:600; font-size:.7rem; letter-spacing:.07em; text-transform:uppercase; border:1px solid; border-radius:3px; padding:3px 8px; }
.phase-signature .tag.discovery{ color:var(--green); border-color:color-mix(in srgb, var(--green) 45%, transparent); }
.phase-signature .tag.prototype{ color:var(--meta); border-color:color-mix(in srgb, var(--meta) 45%, transparent); }
.phase-signature .tag.build{ color:var(--sandstone-text); border-color:color-mix(in srgb, var(--sandstone) 45%, transparent); }
.writing-all{ margin-top:2.6rem; }

/* Articles (/writing/<slug>) — the Field Notes article surface */
.article-head{ margin-top:2.4rem; }
.page-title{ font-family:var(--font-head); font-weight:400; font-size:1.7rem; color:var(--ink); margin:0 0 1.4rem; letter-spacing:-.01em; }
.article-kicker{ display:inline-block; font-family:var(--font-head); font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--sandstone-text); margin-bottom:.5rem; }
.article-kicker:hover{ color:var(--link); }
.article-head h1{ font-size:1.55rem; font-weight:600; margin:0 0 .3rem; line-height:1.3; color:var(--ink); }
.article-body{ margin-top:1.6rem; font-size:1.02rem; line-height:1.65; }
.article-body h2{ font-family:var(--font-head); font-weight:600; font-size:1.25rem; margin:2.2rem 0 .7rem; }
.article-body h3{ font-family:var(--font-head); font-weight:600; font-size:1.05rem; margin:1.8rem 0 .5rem; }
.article-body p{ margin:0 0 1.1rem; }
.article-body a{ text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.article-body ul, .article-body ol{ margin:0 0 1.1rem; padding-left:1.4rem; }
.article-body li{ margin-bottom:.35rem; }
.article-body blockquote{ margin:1.2rem 0; padding:.2rem 0 .2rem 1.1rem; border-left:3px solid var(--green); color:var(--muted); }
.article-body img{ max-width:100%; border-radius:8px; }
.article-body hr{ border:0; border-top:1px solid var(--sandstone); opacity:.5; margin:2rem 0; }
.article-body code{ font-family:"SFMono-Regular",Consolas,Menlo,monospace; font-size:.88em; background:var(--code-bg); color:var(--code-text); padding:.12em .4em; border-radius:3px; }
.article-body .highlight pre, .article-body > pre{
  border:1px solid var(--panel-border); border-radius:8px; padding:1rem 1.2rem;
  overflow-x:auto; margin:1.2rem 0; font-size:.85rem; line-height:1.55;
  /* Scroll shadows: the local-attachment covers hide the scroll cues at the
     edges, so a shadow only shows when there is more content that way. */
  background:
    linear-gradient(90deg, var(--panel) 40%, rgba(30,27,28,0)) left/28px 100% no-repeat local,
    linear-gradient(270deg, var(--panel) 40%, rgba(30,27,28,0)) right/28px 100% no-repeat local,
    linear-gradient(90deg, rgba(0,0,0,.55), transparent) left/14px 100% no-repeat scroll,
    linear-gradient(270deg, rgba(0,0,0,.55), transparent) right/14px 100% no-repeat scroll,
    var(--panel);
  scrollbar-width:thin; scrollbar-color:#5a534f transparent;
}
.article-body pre::-webkit-scrollbar{ height:8px; }
.article-body pre::-webkit-scrollbar-thumb{ background:#5a534f; border-radius:4px; }
.article-body pre::-webkit-scrollbar-track{ background:transparent; }
.article-body pre code{ background:none; color:var(--panel-text); padding:0; font-size:1em; }
/* Chroma token classes -> canon panel inks (keywords teal, strings green,
   comments muted, names/text paper) */
.article-body .highlight .k, .article-body .highlight .kd, .article-body .highlight .kn,
.article-body .highlight .kr, .article-body .highlight .kt, .article-body .highlight .im{ color:#5aaec0; }
.article-body .highlight .s, .article-body .highlight .s1, .article-body .highlight .s2,
.article-body .highlight .sb, .article-body .highlight .sd{ color:#46ac7d; }
.article-body .highlight .c, .article-body .highlight .c1, .article-body .highlight .cm,
.article-body .highlight .ch{ color:#a89a8f; }
.article-body .highlight .nf, .article-body .highlight .nc, .article-body .highlight .nn{ color:#93a7b5; }
.article-rel{ margin:.5rem 0 0 !important; }
.article-nav{ margin-top:2.6rem; padding-top:1.4rem; border-top:1px solid var(--sandstone); display:flex; justify-content:space-between; gap:1.5rem; }
.article-nav a{ display:flex; flex-direction:column; gap:.15rem; max-width:47%; }
.article-nav-next{ text-align:right; margin-left:auto; }
.article-nav-dir{ font-family:var(--font-head); font-weight:700; font-size:.72rem; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.article-nav a:hover .article-nav-dir{ color:var(--link); }
.article-nav-ttl{ font-family:var(--font-head); font-weight:600; font-size:.9rem; color:var(--ink); text-decoration:underline; text-decoration-color:var(--sandstone); text-decoration-thickness:1px; text-underline-offset:3px; }
.article-nav a:hover .article-nav-ttl{ color:var(--link); text-decoration-color:var(--link); }
.article-foot{ margin-top:1.8rem; padding-top:1.2rem; font-family:var(--font-head); font-weight:600; font-size:.9rem; }
.writing-all-list{ margin-top:3.2rem; }
.writing-all-list h2{ font-family:var(--font-head); font-weight:700; font-size:1.15rem; margin:0 0 1.4rem; padding-bottom:.35rem; border-bottom:2px solid var(--sandstone); }

footer { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .contacts { gap: .8rem 1rem; } }
.ext-mark { font-size: .75em; }

/* /work: h1 becomes a link back home — keep it looking like a plain heading */
header h1 a { color: inherit; text-decoration: none; border-bottom: none; }
header h1 a:hover { opacity: .78; }

/* ===== Rail grammar: every subpage = slim sticky rail + content column ===== */
.wrap:has(.railpage){ max-width:1120px; }
.railpage{ display:flex; gap:56px; align-items:flex-start; }
.page-rail{ flex:0 0 180px; position:sticky; top:7vh; display:flex; flex-direction:column; gap:1.3rem; }
.rail-name{ font-family:var(--font-head); font-weight:400; font-size:1.35rem; color:var(--ink); line-height:1.2; }
.rail-name:hover{ color:var(--link); }
.rail-nav{ display:flex; flex-direction:column; gap:.4rem; font-family:var(--font-head); font-weight:600; font-size:.85rem; }
.rail-nav a{ color:var(--muted); padding-block:.1rem; }
.rail-nav a:hover{ color:var(--link); }
.rail-nav a.is-current{ color:var(--ink); position:relative; }
.rail-nav a.is-current::before{ content:""; position:absolute; left:-11px; top:50%; transform:translateY(-50%); width:4px; height:4px; border-radius:50%; background:var(--sandstone); }
.railmain{ flex:1; min-width:0; max-width:720px; }

/* Shared metadata bits (used by the ledger and the writing surfaces) */
.tag { color: var(--sandstone-text); font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; }
.era { color: var(--meta); font-family: var(--font-head); font-weight: 600; font-size: .78rem; }
.ledger-tiles{ display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.45rem; }
.ledger-tiles .tile{ font-family:var(--font-head); font-weight:600; font-size:.66rem; letter-spacing:.06em; text-transform:uppercase; padding:.1rem .45rem; border-radius:3px; border:1px solid; }
.ledger-tiles .tile.discovery{ color:var(--green); border-color:var(--green); }
.ledger-tiles .tile.build{ color:var(--sandstone-text); border-color:var(--sandstone); }
.ledger-tiles .tile.prototype{ color:var(--meta); border-color:var(--meta); }

/* ===== /work: the ledger — one chronological spine, cards alternating ===== */
.ledger{ position:relative; margin-top:2.4rem; padding-bottom:.5rem; }
.ledger::before{ content:""; position:absolute; left:50%; top:8px; bottom:0; width:2px; transform:translateX(-50%); background:var(--sandstone); opacity:.5; }
.ledger-item{ position:relative; width:calc(50% - 34px); margin-bottom:1.6rem; background:var(--card); border:1px solid var(--border); border-radius:8px; padding:13px 15px; }
.ledger-item + .ledger-item{ margin-top:-4.5rem; }
.ledger-item.side-left{ margin-right:auto; }
.ledger-item.side-right{ margin-left:auto; }
.ledger-item .ldot{ position:absolute; top:17px; width:11px; height:11px; border-radius:50%; box-shadow:0 0 0 3px var(--bg); }
.ledger-item::before{ content:""; position:absolute; top:22px; width:34px; height:1px; background:var(--sandstone); opacity:.5; }
.side-left::before{ right:-34px; }
.side-right::before{ left:-34px; }
.side-left .ldot{ right:-40px; }
.side-right .ldot{ left:-40px; }
.pd-product .ldot{ background:var(--green); }
.pd-engineering .ldot{ background:var(--sandstone); }
.pd-design .ldot{ background:var(--meta); }
.ledger-year{ position:absolute; top:-9px; font-family:var(--font-head); font-weight:600; font-size:10px; letter-spacing:.1em; color:var(--muted); background:var(--bg); padding:1px 7px; border-radius:3px; }
.side-left .ledger-year{ right:-34.5px; transform:translateX(50%); }
.side-right .ledger-year{ left:-34.5px; transform:translateX(-50%); }
.ledger-meta{ display:flex; gap:.6rem; align-items:baseline; flex-wrap:wrap; margin-bottom:.35rem; }
.ledger-item h3{ margin:0 0 .3rem; font-size:1rem; font-weight:600; }
.ledger-item h3 a{ color:var(--ink); text-decoration:underline; text-decoration-color:var(--sandstone); text-decoration-thickness:1px; text-underline-offset:4px; }
.ledger-item h3 a:hover{ color:var(--link); text-decoration-color:var(--link); }
.ledger-item p{ margin:0; font-size:.92rem; line-height:1.5; }
.ledger-related{ margin:.45rem 0 0 !important; font-family:var(--font-head); font-weight:600; font-size:.82rem; }
.ledger-related a{ color:var(--sandstone-text); }
.ledger-related a:hover{ color:var(--link); }

/* The alternating form needs a wide column: below 1000px the ledger goes
   single-file (spine left) even while the rail is still beside it. */
@media (max-width: 1000px){
  .ledger::before{ left:8px; transform:none; }
  .ledger-item{ width:auto; }
  .ledger-item.side-left, .ledger-item.side-right{ margin:0 0 1.3rem 30px; }
  .ledger-item + .ledger-item{ margin-top:0; }
  .side-left .ldot, .side-right .ldot{ left:-27px; right:auto; }
  .side-left::before, .side-right::before{ left:-22px; right:auto; width:22px; }
  .side-left .ledger-year, .side-right .ledger-year{ left:-21.5px; right:auto; transform:translateX(-50%); top:-9px; }
}

/* Mobile: the rail stacks into a header */
@media (max-width: 820px){
  .railpage{ display:block; }
  .page-rail{ position:static; margin-bottom:2rem; gap:.7rem; }
  .rail-nav{ flex-direction:row; flex-wrap:wrap; gap:.9rem .9rem; }
  .rail-nav a.is-current::before{ left:-9px; }
}

/* ===== Home — discipline-space ===== */
.home{ max-width:1120px; margin:0 auto; padding:0 40px; display:flex; gap:56px; align-items:flex-start; }
.home-left{ flex:0 0 43%; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; justify-content:center; padding:40px 0; }
.home-eyebrow{ font-family:var(--font-head); font-weight:600; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.home-name{ font-family:var(--font-head); font-weight:400; font-size:40px; line-height:1.1; letter-spacing:-.01em; margin:8px 0 8px; }
.home-role{ font-family:var(--font-head); font-weight:600; font-size:12px; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); }
.home-tag{ margin:14px 0 0; font-size:16px; max-width:34ch; opacity:.92; }
.plotbox{ margin:18px 0 4px; }
#disc-plot{ display:block; width:100%; height:320px; }
.plotbox .plot-hint, .plotbox .readout{ padding:0 2px; }
.plot-hint{ font-family:var(--font-head); font-weight:600; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-top:2px; }
.readout{ min-height:32px; margin-top:8px; font-family:"SFMono-Regular",Consolas,Menlo,monospace; font-size:11px; letter-spacing:.01em; color:var(--meta); }
.readout b{ display:block; color:var(--text); font-size:12px; font-family:var(--font-head); font-weight:600; }
.readout .q{ display:block; margin-top:1px; color:var(--link); font-weight:600; }
.home-links{ margin-top:24px; display:flex; gap:16px; flex-wrap:wrap; }
.home-links a{ color:var(--muted); }
.home-links a:hover{ color:var(--link); }
.home-links a{ font-family:var(--font-head); font-weight:600; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--text); text-decoration:none; border-bottom:2px solid transparent; padding-block:4px; }
.home-links a:hover{ border-bottom-color:var(--link); }
.home-colophon{ margin-top:15px; display:flex; flex-direction:column; gap:3px; font-family:var(--font-head); font-weight:600; font-size:10px; letter-spacing:.05em; text-transform:uppercase; color:var(--sandstone-text); font-variant-numeric:tabular-nums; }
.home-colophon .colophon-line{ display:block; }
.home-colophon .colophon-meta{ color:var(--muted); }
.home-colophon.is-stale{ color:var(--muted); }
.home-built{ margin-top:10px; font-family:var(--font-body); font-size:12px; line-height:1.5; color:var(--muted); max-width:34ch; }
.home-built a{ color:var(--link); text-decoration:none; border-bottom:1px solid var(--border); white-space:nowrap; }

.home-right{ flex:1; padding:96px 0 32vh; }
.home-intro{ font-size:19px; line-height:1.65; max-width:50ch; letter-spacing:-.004em; margin:0 0 20px; padding-left:16px; }
.home-intro em{ font-style:normal; color:var(--ink); }
.home-latest{ font-family:var(--font-head); font-weight:700; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--sandstone-text); white-space:nowrap; }
/* Every work renders at full contrast at all times — no dim-on-load wash.
   The currently-scrolled work gets a whisper of emphasis instead: a 2px
   accent border. It's reserved (transparent) on every work so the border
   never shifts text when .active toggles on/off. */
.work{ padding:36px 0 36px 14px; border-top:1px solid var(--border); border-left:2px solid transparent; transition:border-color .15s; }
.work.active{ border-left-color:var(--link); }
.work-n{ font-family:var(--font-head); font-weight:700; font-size:11px; letter-spacing:.14em; color:var(--sandstone-text); }
.work-title{ font-family:var(--font-head); font-weight:600; font-size:22px; line-height:1.25; letter-spacing:-.012em; margin:7px 0 3px; }
.work-yr{ font-family:var(--font-head); font-weight:600; font-size:12px; letter-spacing:.04em; color:var(--muted); margin-left:5px; }
.work-blurb{ margin:10px 0 12px; max-width:44ch; line-height:1.6; opacity:.88; }
.work-links{ display:flex; gap:14px; flex-wrap:wrap; margin:0 0 11px; }
.work-links a{ font-family:var(--font-head); font-weight:600; font-size:11px; letter-spacing:.03em; color:var(--muted); border-bottom:1px solid transparent; padding-block:4px; }
.work-links a:hover{ color:var(--link); border-bottom-color:currentColor; }
.work-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.work-tags .tag{ font-family:var(--font-head); font-weight:600; font-size:10px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); border:1px solid var(--border); border-radius:3px; padding:3px 8px; }
.work-tags .tag:not(.on){ border-style:dashed; }   /* skills not at play for a work: dashed outline */
.tag.discovery.on{ color:var(--green); border-color:color-mix(in srgb, var(--green) 45%, transparent); }
.tag.prototype.on{ color:var(--meta); border-color:color-mix(in srgb, var(--meta) 45%, transparent); }
.tag.build.on{ color:var(--sandstone-text); border-color:color-mix(in srgb, var(--sandstone) 45%, transparent); }

/* mobile residue of the plot: a discipline bar above each chip, chip-width,
   so position (not only color) binds amount to label. Hidden on desktop. */
.work-tags .tagcol{ display:inline-flex; flex-direction:column; justify-content:flex-end; gap:4px; }
.work-tags .seg{ display:none; width:100%; border-radius:3px 3px 0 0; height:calc(3px + var(--v) * 26px); opacity:calc(.3 + var(--v) * .7); }
.work-tags .seg.discovery{ background:var(--green); }
.work-tags .seg.prototype{ background:var(--meta); }
.work-tags .seg.build{ background:var(--sandstone); }

/* Mobile identity marker, echoing the /work timeline's rail-and-dot motif:
   a slim vertical rail runs behind the work list, with one dot per work
   colour-coded to its dominant discipline (--dot-color set inline per
   section from its coords — see layouts/index.html). Desktop-hidden. */
.work-dot{ display:none; }

@media (max-width:820px){
  .home{ flex-direction:column; gap:0; padding:0 26px; }
  .home-left{ position:static; height:auto; display:block; padding:44px 0 4px; }
  .plotbox{ display:none; }              /* full 3D plot dropped on mobile */
  .home-name{ font-size:32px; }
  .home-right{ padding:18px 0 60px; }
  .work-tags .seg{ display:block; }      /* residue shown instead */
  .work-tags{ align-items:flex-end; }

  .work-rail{ position:relative; padding-left:24px; }
  .work-rail::before{
    content:""; position:absolute; left:6px; top:34px; bottom:44px; width:2px; background:var(--border);
  }
  .work{ position:relative; padding-left:12px; }
  .work-dot{
    display:block; position:absolute; left:-22px; top:40px;
    width:10px; height:10px; border-radius:50%;
    background:var(--dot-color, var(--sandstone));
    box-shadow:0 0 0 3px var(--bg); z-index:2;
  }
}

@media (prefers-color-scheme: dark) {
  /* .work-tags .tag, .readout, and .home-role/.home-eyebrow used to lift
     themselves above the shared --muted/--border tokens here with hardcoded
     dark hexes (#c3b9ac at 8.83:1 — over the 4.5-8:1 secondary-band ceiling;
     #b6ab9f at 7.58:1; #4a4340 border). Their base rules already read
     var(--muted)/var(--border), which resolve to compliant dark values
     (6.25:1 / 1.40:1) on their own, so the overrides were pure duplication
     once tokenized — removed rather than reasserted. */
  .work-blurb{ opacity:.95; }
}

/* --- landing rework (behind the `landing-rework` toggle, #85) ------------ */
.rw {
  --rw-col-index: 28px;
  --rw-col-main: minmax(200px, 1.35fr);
  --rw-col-facts: minmax(180px, 1fr);
}
.rw[hidden], .rw.home[hidden], #home-current[hidden] { display: none; }
.rw.home { max-width: none; padding: 0 70px; display: grid; grid-template-columns: 450px minmax(0, 1fr); column-gap: 70px; align-items: start; }
.rw .rw-id, .rw .rw-rail { grid-column: 1; grid-row: 1; position: sticky; z-index: 1; }
.rw .rw-id { top: 0; padding: 28px 0 14px; background: var(--bg); }
.rw .rw-utility-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--micro-meta); font-variant-numeric: tabular-nums; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin: 0 0 12px; }
.rw .rw-id .home-role { margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sandstone-text); }
.rw .rw-id .home-tag { margin-top: 8px; font-family: var(--font-head); font-size: 0.94rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.rw .rw-nav { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rw-nav-primary { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; }
.rw-nav-primary a { color: var(--muted); text-decoration: none; border-bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 2px 0; transition: color 0.15s ease; }
.rw-nav-primary a.current { color: var(--ink); }
.rw-nav-primary a.current .rw-nav-label::before { content: "● "; color: var(--sandstone); font-size: 0.7em; vertical-align: middle; margin-right: 4px; }
.rw-nav-primary a:hover { color: var(--link); }
.rw-nav-count { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 400; color: var(--micro-meta); letter-spacing: 0.04em; text-transform: uppercase; }
.rw-nav-external { display: flex; gap: 14px; padding-top: 4px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; }
.rw-nav-external a { color: var(--muted); text-decoration: none; border-bottom: 0; transition: color 0.15s ease; }
.rw-nav-external a:hover { color: var(--link); }
.rw .rw-rail { top: var(--rw-id-h, 280px); margin-top: var(--rw-id-h, 280px); max-height: calc(100vh - var(--rw-id-h, 280px)); overflow-y: auto; scrollbar-width: none; padding: 0 10px 16px 0; background: var(--bg); }
.rw .rw-rail::-webkit-scrollbar { display: none; }
.rw .home-right { grid-column: 2; grid-row: 1; min-width: 0; max-width: 50rem; padding: 28px 0 0; }
.rw-lede { padding-bottom: 24px; border-bottom: 1px solid var(--border-strong); margin-bottom: 36px; }
.rw-lede-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.rw-lede-kicker { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sandstone-text); }
.rw-lede-meta { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--micro-meta); }
.rw .home-intro { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.62; color: var(--ink); max-width: 62ch; margin: 0; text-wrap: pretty; }
.rw-section { margin-top: 56px; }
.rw-products { margin-top: 0; }
.rw-section-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.rw-section-head-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rw-section-head h2 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); }
.rw-section-head h2 a { color: inherit; text-decoration: none; }
.rw-section-head-meta { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--micro-meta); }
.rw-section-index-link { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; color: var(--link); text-decoration: none; transition: color 0.15s ease; }
.rw-section-index-link:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
.rw-slot:empty { display: none; }
.rw-writing-list { list-style: none; margin: 0; padding: 6px 0 0; }
.rw-writing-item { padding: 4px 0; line-height: 1.6; }
.rw-writing-title { font-weight: 600; }
.rw-writing-year { color: var(--muted); font-size: 13px; }
.rw-name { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.85rem, 4vw, 2.25rem); line-height: 1.12; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.rw-panel { position: relative; background: var(--panel); color: #e8dfd0; --text: #e8dfd0; --muted: #93a7b5; --border: #3a4046; --green: #46ac7d; --sandstone: #c8a585; --sandstone-text: #c8a585; border: 1px solid var(--panel-border, #3a3436); border-radius: 8px; padding: 14px; }
.rw-panel::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 2px; background: var(--orange); transform: translateY(-50%); pointer-events: none; }
.rw-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(147, 167, 181, 0.72); padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-variant-numeric: tabular-nums; }
.rw-plot-hint { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.rw-panel-count { color: #5aaec0; font-weight: 500; flex-shrink: 0; }
.rw-radar { display: block; width: 100%; height: 225px; }
.rw-panel-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 10px; margin-top: 6px; }
.rw-readout { min-height: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: #a89a8f; font-variant-numeric: tabular-nums; }
.rw-readout b { display: block; color: #5aaec0; font-size: 0.82rem; font-family: var(--font-head); font-weight: 600; margin-bottom: 3px; }
.rw-readout-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.45; min-height: calc(3 * 1.45em); max-height: calc(3 * 1.45em); }
.rw-row:focus-visible { outline: 2px solid var(--link-deep); outline-offset: 4px; }
/* Cluster plate (#129, #147), after Landing v10: header, node mesh, pod bars, inspector. */
.rw-plate { position: relative; margin-top: 14px; padding: 10px 10px 8px; border-top: 1px solid var(--greeble-line); border-bottom: 1px solid var(--greeble-line); display: flex; flex-direction: column; gap: 7px; font-family: var(--font-mono); font-weight: 500; font-size: 0.56rem; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; color: var(--greeble-faint); font-variant-numeric: tabular-nums; transition: color 0.15s ease, border-color 0.15s ease; }
.rw-plate:hover { color: var(--micro-meta); border-color: var(--border-strong); }
.rw-plate:focus-visible { outline: 2px solid var(--link-deep); outline-offset: 4px; }
.rw-plate::before, .rw-plate::after { content: "+"; position: absolute; top: -5.5px; font-size: 0.6rem; line-height: 1; color: var(--greeble-faint); background: var(--bg); padding: 0 2px; }
.rw-plate::before { left: -2px; }
.rw-plate::after { right: -2px; }
.rw-plate-head { display: flex; justify-content: space-between; align-items: center; }
.rw-plate-uptime { display: inline-flex; align-items: center; gap: 4px; }
.rw-plate-status-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); opacity: 0.75; }
.rw-plate-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px; padding: 4px 0 2px; border-top: 1px dotted var(--greeble-line); border-bottom: 1px dotted var(--greeble-line); }
.rw-plate-subpanel { display: flex; flex-direction: column; gap: 4px; }
.rw-plate-sublabel { display: flex; justify-content: space-between; font-size: 0.51rem; letter-spacing: 0.04em; opacity: 0.85; }
.rw-plate-mesh { display: block; width: 100%; height: 26px; overflow: visible; }
.rw-plate-edge { stroke: var(--greeble-line); stroke-width: .85; transition: stroke 0.15s ease, stroke-width 0.15s ease; }
.rw-plate-edge.is-lit { stroke: var(--link); stroke-width: 1.3; }
.rw-plate-dot { fill: var(--greeble-faint); transition: fill 0.15s ease; }
.rw-plate-node.is-cp .rw-plate-dot { fill: var(--sandstone); }
.rw-plate-node.is-active .rw-plate-dot { fill: var(--link); opacity: 1; }
.rw-plate-hit { fill: transparent; cursor: pointer; }
.rw-plate-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 26px; padding-top: 2px; }
.rw-plate-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; padding: 0 1px; }
.rw-plate-bar-fill { width: 100%; background: var(--greeble-faint); opacity: .55; border-radius: 1px 1px 0 0; transition: opacity 0.15s ease, background-color 0.15s ease; }
.rw-plate-bar.is-cp .rw-plate-bar-fill { background: var(--sandstone); opacity: .7; }
.rw-plate-bar.is-active .rw-plate-bar-fill { background: var(--link); opacity: 1; }
.rw-plate-inspector { font-size: 0.54rem; letter-spacing: 0.04em; color: var(--meta); min-height: 1.35em; line-height: 1.35; }
.rw-plate-inspector.is-active { color: var(--ink); font-weight: 500; }
.rw-plate-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rw-build { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-self: flex-start; width: fit-content; font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--meta); font-variant-numeric: tabular-nums; }
.rw-build > span { padding: 4px 8px; border: 1px solid var(--border); border-radius: 3px; }
.rw-build code { font: inherit; }
.rw-placements { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.rw-placements table { width: max-content; }
/* Work rows (#128, #146), v10's hairline ledger rows on shared column tracks. */
.rw-stream { display: flex; flex-direction: column; min-width: 0; }
.rw-row, .rw-case { position: relative; display: grid; grid-template-columns: var(--rw-col-index) var(--rw-col-main) var(--rw-col-facts); column-gap: 14px; row-gap: 10px; align-items: center; min-width: 0; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--border); transition: background-color .15s ease; }
.rw-row:first-child, .rw-case:first-child { border-top: 1px solid var(--border); }
.rw-row { cursor: pointer; }
.rw-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: transparent; transition: background-color .15s ease; }
.rw-row:hover { background: var(--card-rest); }
.rw-row.is-active { background: var(--card); }
.rw-row.is-active::before { background: var(--orange); }
.rw-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rw-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 16px; line-height: 1.35; font-family: var(--font-mono); font-weight: 500; font-size: 0.63rem; letter-spacing: .03em; text-transform: uppercase; color: var(--micro-meta); }
.rw-sub a { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; border-bottom: 0; }
@media (min-width: 821px) { .rw-row { min-height: 104px; box-sizing: border-box; } }
.rw-sub a:hover { color: var(--link-hover); }
.rw-facts { grid-column: 3; grid-row: 1; min-width: 0; font-family: var(--font-mono); font-weight: 500; font-size: 0.64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--micro-meta); font-variant-numeric: tabular-nums; text-align: right; align-self: baseline; }
.rw-row.is-active .rw-facts { color: var(--meta); }
.rw-timeline { grid-column: 2; grid-row: 2; position: relative; min-width: 0; width: min(220px, 100%); padding: 8px 0; margin: -8px 0; cursor: default; }
.rw-track { position: relative; height: 6px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 6.25%); }
.rw-span { position: absolute; bottom: 0; height: 3px; background: var(--sandstone); }
.rw-years { position: absolute; top: calc(100% - 5px); font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: .06em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.rw-timeline:hover .rw-years, .rw-row:focus-within .rw-years { opacity: 1; }
.rw-bars { grid-column: 3; grid-row: 2; justify-self: end; min-width: 0; display: flex; align-items: flex-end; gap: 3px; height: 24px; margin: -2px 0; }
.rw-bar { --rw-bar-1: var(--rw-gauge-green-1); --rw-bar-2: var(--rw-gauge-green-2); --rw-bar-3: var(--rw-gauge-green-3); --rw-bar-empty: var(--rw-gauge-green-empty); position: relative; appearance: none; background: none; border: 0; box-sizing: border-box; display: flex; align-items: flex-end; width: 15px; min-height: 24px; height: 24px; padding: 3px 0 2px; margin: 0; outline: 1px solid transparent; outline-offset: 1px; border-radius: 2px; cursor: pointer; }
.rw-bar[data-group="breadth"] { --rw-bar-1: var(--rw-gauge-sandstone-1); --rw-bar-2: var(--rw-gauge-sandstone-2); --rw-bar-3: var(--rw-gauge-sandstone-3); --rw-bar-empty: var(--rw-gauge-sandstone-empty); }
.rw-bar:nth-child(5) { margin-left: 5px; }
.rw-bar-cells { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; }
.rw-bar-cell { display: block; box-sizing: border-box; width: 100%; height: 5px; border: 1px solid var(--rw-bar-empty); background: transparent; border-radius: 1px; }
.rw-bar[data-tier="1"] .rw-bar-cell:nth-child(1),
.rw-bar[data-tier="2"] .rw-bar-cell:nth-child(-n+2),
.rw-bar[data-tier="3"] .rw-bar-cell:nth-child(-n+3) { --rw-cell: var(--rw-bar-1); --rw-halo: 3.5px; --rw-halo-alpha: 13.3%; background: var(--rw-cell); border-color: var(--rw-cell); box-shadow: 0 0 var(--rw-halo) color-mix(in srgb, var(--rw-cell) var(--rw-halo-alpha), transparent); }
.rw-bar[data-tier] .rw-bar-cell:nth-child(2) { --rw-cell: var(--rw-bar-2); --rw-halo: 5.25px; --rw-halo-alpha: 26.7%; }
.rw-bar[data-tier] .rw-bar-cell:nth-child(3) { --rw-cell: var(--rw-bar-3); --rw-halo: 7px; --rw-halo-alpha: 40%; }
.rw-axis:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.rw-span, .rw-bars { transition: opacity .15s; }
/* v16 line 370: every row but the active one dims its span (.55); bars stay at 1 so empty-cell outlines keep >= 3:1 in both themes. Row 01 is active on load. */
.rw-row:not(.is-active) .rw-span { opacity: .55; }
.rw-title a, .rw-case-title { color: var(--ink-rest); text-decoration: underline; text-decoration-color: var(--sandstone); text-decoration-thickness: 1px; text-underline-offset: 4px; border-bottom: 0; transition: color .15s ease, text-decoration-color .15s ease; }
.rw-row.is-active .rw-title a { color: var(--ink); }
.rw-title a:hover, .rw-case-title:hover { color: var(--link); text-decoration-color: var(--link); }
/* Forced colours replace authored backgrounds with the canvas colour, which would erase the bars and the span. */
@media (forced-colors: active) {
  .rw-bar-cell, .rw-span, .rw-track { forced-color-adjust: none; }
}
.rw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Scramble (static/js/scramble.js): the glyphs are drawn over the element while its real text stays in the DOM. */
.is-scrambling { position: relative; color: transparent !important; overflow: hidden; }
.is-scrambling::after { content: attr(data-scramble) / ""; position: absolute; left: 0; top: 0; right: 0; pointer-events: none; }
.rw-readout-line.is-scrambling::after { color: var(--meta); }
.rw-n { grid-column: 1; grid-row: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: .08em; color: var(--meta); font-variant-numeric: tabular-nums; align-self: baseline; }
.rw-row.is-active .rw-n { color: var(--orange-text); }
.rw-title { font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.012em; margin: 0; }
.rw-cases { margin-top: 56px; }
.rw-case-title { font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.012em; }
.rw-case-summary { margin: 4px 0 0; max-width: 60ch; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
@media (min-width: 1280px) and (min-height: 880px) {
  .rw.home { max-width: calc(50rem + 660px); }
}
@media (max-height: 879px) {
  .rw .rw-id, .rw .rw-rail { position: static; }
  .rw .rw-rail { max-height: none; overflow: visible; }
}
/* Stack below 1150px: 140px outer padding + 450px rail + 70px gap + 468px minimum .rw-row width + 15px classic scrollbar + 7px margin. */
@media (max-width: 1149px) {
  .rw.home { display: block; max-width: 50rem; padding: 0 20px; }
  .rw .rw-id { position: static; padding: 32px 0 0; background: none; }
  .rw .home-right { padding: 24px 0 0; }
  .rw .rw-rail { position: static; margin: 32px 0 0; max-height: none; overflow: visible; padding: 16px 0 56px; background: none; }
  .rw-panel::after { display: none; }
}
@media (max-width: 820px) {
  .rw .home-intro { font-size: 1.05rem; }
  .rw-lede { margin-bottom: 28px; }
  .rw-section, .rw-cases { margin-top: 40px; }
  .rw-name { font-size: 32px; }
  .rw-row, .rw-case { grid-template-columns: var(--rw-col-index) minmax(0, 1fr); padding: 14px 10px 14px 14px; }
  .rw-facts { grid-column: 2; grid-row: 2; text-align: left; }
  .rw-timeline { grid-column: 2; grid-row: 3; }
  .rw-bars { grid-column: 2; grid-row: 4; justify-self: start; }
}
