/* ==========================================================================
   home.css: the "pixel terminal" dialect for the software page.
   Same paper, ink and vermilion as the rest of the site, drawn on a pixel grid:
   a bitmap display face for headings, notched pixel frames instead of rounded
   borders, dithered hard shadows, dashed pixel rules and a block cursor.
   Body copy stays in IBM Plex Sans so it still reads like a portfolio.
   ========================================================================== */

.page-home {
  --pixel: "Jersey 15", "IBM Plex Mono", ui-monospace, monospace;
  /* notched frames: four bars, corners left out, like a sprite border */
  --f2-ink: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink);
  --f4-ink: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
  --dash: linear-gradient(90deg, var(--line-2) 50%, transparent 0);
  --dash-ink: linear-gradient(90deg, var(--ink) 50%, transparent 0);
  --dither: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
  --px-out: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M7%202h7v1h-7zM7%203h7v1h-7zM11%204h3v1h-3zM10%205h4v1h-4zM9%206h2v1h-2zM12%206h2v1h-2zM8%207h2v1h-2zM12%207h2v1h-2zM7%208h2v1h-2zM12%208h2v1h-2zM6%209h2v1h-2zM5%2010h2v1h-2zM4%2011h2v1h-2zM3%2012h2v1h-2z%27/%3E%3C/svg%3E");
}

/* ---------- Pixel icons (16 x 16 bitmaps, drawn to scale up in whole pixels) ---------- */
.px { display: inline-block; flex: none; width: 32px; height: 32px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.px-window { --i: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M1%201h14v1h-14zM1%202h14v1h-14zM1%203h14v1h-14zM1%204h1v1h-1zM14%204h1v1h-1zM1%205h1v1h-1zM3%205h3v1h-3zM7%205h6v1h-6zM14%205h1v1h-1zM1%206h1v1h-1zM3%206h3v1h-3zM7%206h6v1h-6zM14%206h1v1h-1zM1%207h1v1h-1zM3%207h3v1h-3zM14%207h1v1h-1zM1%208h1v1h-1zM3%208h3v1h-3zM7%208h6v1h-6zM14%208h1v1h-1zM1%209h1v1h-1zM3%209h3v1h-3zM14%209h1v1h-1zM1%2010h1v1h-1zM3%2010h3v1h-3zM7%2010h4v1h-4zM14%2010h1v1h-1zM1%2011h1v1h-1zM3%2011h3v1h-3zM14%2011h1v1h-1zM1%2012h1v1h-1zM3%2012h3v1h-3zM14%2012h1v1h-1zM1%2013h1v1h-1zM14%2013h1v1h-1zM1%2014h14v1h-14z%27/%3E%3C/svg%3E"); }
.px-tools { --i: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M7%201h2v1h-2zM7%202h2v1h-2zM3%203h10v1h-10zM3%204h10v1h-10zM3%205h10v1h-10zM3%206h3v1h-3zM10%206h3v1h-3zM1%207h5v1h-5zM10%207h5v1h-5zM1%208h5v1h-5zM10%208h5v1h-5zM3%209h3v1h-3zM10%209h3v1h-3zM3%2010h10v1h-10zM3%2011h10v1h-10zM3%2012h10v1h-10zM7%2013h2v1h-2zM7%2014h2v1h-2z%27/%3E%3C/svg%3E"); }
.px-bag { --i: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M6%201h4v1h-4zM5%202h1v1h-1zM10%202h1v1h-1zM5%203h1v1h-1zM10%203h1v1h-1zM3%204h10v1h-10zM2%205h12v1h-12zM2%206h12v1h-12zM2%207h12v1h-12zM2%208h12v1h-12zM2%209h12v1h-12zM2%2010h12v1h-12zM2%2011h12v1h-12zM2%2012h12v1h-12zM2%2013h12v1h-12zM2%2014h12v1h-12z%27/%3E%3C/svg%3E"); }
.px-plug { --i: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M4%201h2v1h-2zM10%201h2v1h-2zM4%202h2v1h-2zM10%202h2v1h-2zM4%203h2v1h-2zM10%203h2v1h-2zM4%204h2v1h-2zM10%204h2v1h-2zM3%205h10v1h-10zM3%206h10v1h-10zM3%207h10v1h-10zM3%208h10v1h-10zM3%209h10v1h-10zM5%2010h6v1h-6zM5%2011h6v1h-6zM7%2012h2v1h-2zM7%2013h2v1h-2zM7%2014h2v1h-2z%27/%3E%3C/svg%3E"); }
.px-prompt { --i: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M1%202h14v1h-14zM1%203h1v1h-1zM14%203h1v1h-1zM1%204h1v1h-1zM14%204h1v1h-1zM1%205h1v1h-1zM4%205h2v1h-2zM14%205h1v1h-1zM1%206h1v1h-1zM5%206h2v1h-2zM14%206h1v1h-1zM1%207h1v1h-1zM6%207h2v1h-2zM14%207h1v1h-1zM1%208h1v1h-1zM5%208h2v1h-2zM14%208h1v1h-1zM1%209h1v1h-1zM4%209h2v1h-2zM9%209h4v1h-4zM14%209h1v1h-1zM1%2010h1v1h-1zM14%2010h1v1h-1zM1%2011h1v1h-1zM14%2011h1v1h-1zM1%2012h1v1h-1zM14%2012h1v1h-1zM1%2013h14v1h-14z%27/%3E%3C/svg%3E"); }
.px-more { --i: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20shape-rendering=%27crispEdges%27%3E%3Cpath%20d=%27M1%206h4v1h-4zM6%206h4v1h-4zM11%206h4v1h-4zM1%207h4v1h-4zM6%207h4v1h-4zM11%207h4v1h-4zM1%208h4v1h-4zM6%208h4v1h-4zM11%208h4v1h-4zM1%209h4v1h-4zM6%209h4v1h-4zM11%209h4v1h-4z%27/%3E%3C/svg%3E"); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Buttons, tags: square, chunky, pressable ---------- */
.page-home .btn { margin: 2px; height: 44px; padding: 0 20px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font: 500 14.5px/1 var(--mono); box-shadow: var(--f2-ink), inset 0 -4px 0 0 rgba(21, 19, 15, 0.12); transition: none; }
.page-home .btn:hover { background: var(--ink); color: var(--paper); box-shadow: var(--f2-ink), inset 0 -4px 0 0 rgba(255, 255, 255, 0.14); }
.page-home .btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--f2-ink), inset 0 4px 0 0 rgba(255, 255, 255, 0.12); }
.page-home .btn-primary:hover { background: var(--accent); color: #fff; box-shadow: var(--f2-ink), inset 0 -4px 0 0 rgba(0, 0, 0, 0.22); }
.page-home .btn:active { transform: translateY(2px); }
.page-home .btn:focus-visible { outline-offset: 5px; }
.page-home .tag { border: 2px solid var(--line-2); border-radius: 0; padding: 0 7px; background: transparent; line-height: 1.6; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 6vw, 88px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 24px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 8px; height: 8px; background: var(--good); display: inline-block; }
.hero h1 { font: 400 75px/0.98 var(--pixel); font-synthesis: none; letter-spacing: 0; max-width: none; text-wrap: balance; }
.hero h1 .line2 { display: block; color: var(--ink-3); }
.hero h1 .line2::after { content: ""; display: inline-block; width: 0.4em; height: 0.7em; margin-left: 0.14em; background: var(--accent); vertical-align: -0.02em; animation: blink 1.1s steps(1, end) infinite; }
.hero-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(32px, 4.5vw, 56px); }
.hero-copy .lede + .lede { margin-top: 14px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { position: relative; margin-top: 34px; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dash) 0 0 / 8px 2px repeat-x; }
.facts div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 11px 0 12px; background: var(--dash) 0 100% / 8px 2px repeat-x; font-size: 15px; }
.facts dt { font: 500 12px/1.7 var(--mono); color: var(--ink-3); padding-top: 2px; }
.facts dt::before { content: "> "; color: var(--accent-ink); }
.facts dd { color: var(--ink); }

/* ---------- Terminal window ---------- */
.term { position: relative; isolation: isolate; margin: 4px 16px 16px 4px; background: transparent; color: var(--t-fg); border: 0; border-radius: 0; font: 400 13.5px/1.62 var(--mono); box-shadow: var(--f4-ink); }
.term::after, .repo::after, .side::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(12px, 12px); background: var(--dither) 0 0 / 8px 8px; transition: transform 0.12s steps(2); }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 36px; padding: 0 12px; background: var(--t-bg-2); border-bottom: 2px solid var(--t-line); color: var(--t-dim); font-size: 12px; }
.term-bar-l { display: inline-flex; align-items: center; gap: 10px; }
.term-bar .dots { display: inline-flex; gap: 6px; }
.term-bar .dots i { width: 8px; height: 8px; background: #48505b; display: block; }
.term-bar-r { display: inline-flex; align-items: center; gap: 10px; }
.term-badge { padding: 0 6px; border: 2px solid var(--t-line); border-radius: 0; color: var(--t-dim); font-size: 11px; line-height: 1.5; }
.term-screen { position: relative; height: 430px; overflow-y: auto; padding: 14px 16px 6px; background: var(--t-bg); scrollbar-width: thin; scrollbar-color: #30363d transparent; cursor: text; overscroll-behavior: contain; }
.term-screen:focus-visible { outline-offset: -2px; }
.term-out { overflow-wrap: anywhere; }
.term-ln { min-height: 1.62em; white-space: pre-wrap; }
.term-ln.gap { height: 0.8em; min-height: 0; }
.term-ln.say { padding-left: 2ch; text-indent: -2ch; }
.term-ln.res { padding-left: 5ch; text-indent: -5ch; }
.term-form { display: flex; align-items: baseline; gap: 8px; padding: 0 0 8px; }
.term-prompt { flex: none; white-space: pre; }
.term-input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--t-fg); font: inherit; caret-color: var(--t-green); caret-shape: block; }
.term.is-busy .term-form { display: none; }
.term-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; white-space: nowrap; overflow: hidden; padding: 0 12px; background: var(--t-bg-2); border-top: 2px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; }
.term-status .tabs { display: inline-flex; gap: 14px; }
.term-status .on { color: var(--t-fg); }
.term-status .on::before { content: "■ "; color: var(--accent-light); }

.c-dim { color: var(--t-dim); } .c-green { color: var(--t-green); } .c-blue { color: var(--t-blue); } .c-cyan { color: var(--t-cyan); }
.c-purple { color: var(--t-purple); } .c-orange { color: var(--t-orange); } .c-red { color: var(--t-red); } .c-yellow { color: var(--t-yellow); }
.c-accent { color: var(--accent-light); } .b { font-weight: 600; } .c-fg { color: #f0f6fc; }
.diff-add { color: var(--t-green); background: rgba(63, 185, 80, 0.12); display: block; margin: 0 -16px; padding: 0 16px; }
.diff-del { color: var(--t-red); background: rgba(255, 123, 114, 0.12); display: block; margin: 0 -16px; padding: 0 16px; }
.spinner { color: var(--accent-light); }

.term-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 22px; }
.term-chips .label { margin-right: 4px; }
.chip { margin: 2px; padding: 6px 10px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: var(--f2-ink); font: 500 12.5px/1.2 var(--mono); }
.chip:hover, .chip.is-on { background: var(--ink); color: var(--paper); }
.chip:active { transform: translateY(2px); }
.chip:focus-visible { outline-offset: 5px; }

/* ---------- Sections (two-column editorial layout) ---------- */
main { counter-reset: sec; }
.sec { counter-increment: sec; position: relative; padding: clamp(48px, 6vw, 80px) 0 clamp(52px, 7vw, 92px); }
.sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dash-ink) 0 0 / 8px 4px repeat-x; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.sec-head { position: sticky; top: calc(var(--strip-h) + 24px); }
.sec-idx::before { content: "[" counter(sec, decimal-leading-zero) "]"; }
.sec-idx { display: block; margin-bottom: 12px; font: 500 13px/1 var(--mono); color: var(--accent-ink); }
.sec-head .h2 { margin-bottom: 14px; font: 400 45px/0.95 var(--pixel); font-synthesis: none; letter-spacing: 0; }
.sec-head p { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 30ch; }

/* ---------- Capability rows ---------- */
.rows { position: relative; }
.rows::before { content: ""; position: absolute; left: -12px; right: -12px; top: 0; height: 2px; background: var(--dash) 0 0 / 8px 2px repeat-x; }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 8px 28px; margin: 0 -12px; padding: 24px 12px 25px; background: var(--dash) 0 100% / 8px 2px repeat-x; align-items: start; position: relative; }
.row h3 { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: start; font-size: 1.2rem; letter-spacing: -0.02em; }
.row h3 .px { grid-row: 1 / span 2; margin-top: 1px; }
.row h3 .n { grid-column: 2; margin-bottom: 6px; font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.row h3 .n::before { content: "["; } .row h3 .n::after { content: "]"; }
.row h3 .t { grid-column: 2; }
.row p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.row .tags { justify-content: flex-start; }
a.row::after { content: ""; position: absolute; right: 12px; top: 28px; width: 16px; height: 16px; background: var(--ink); -webkit-mask: var(--px-out) center / contain no-repeat; mask: var(--px-out) center / contain no-repeat; transition: transform 0.12s steps(2); }
a.row:hover, a.row:focus-visible { background-color: var(--ink); color: var(--paper); outline-offset: -2px; }
a.row:hover p, a.row:focus-visible p { color: #d6d1c4; }
a.row:hover .tag, a.row:focus-visible .tag { border-color: #6b665a; color: #d6d1c4; }
a.row:hover h3 .n, a.row:focus-visible h3 .n { color: #b9b3a3; }
a.row:hover::after, a.row:focus-visible::after { background: var(--accent-light); transform: translate(2px, -2px); }
a.row h3 .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
a.row:hover h3 .t, a.row:focus-visible h3 .t { text-decoration-color: var(--accent-light); }

/* ---------- Selected work (auto-hidden until config.work has entries) ---------- */
.work-list { position: relative; }
.work-list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dash) 0 0 / 8px 2px repeat-x; }
.work-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 3fr); gap: 8px 24px; padding: 22px 0 23px; background: var(--dash) 0 100% / 8px 2px repeat-x; }
.work-item .yr { font: 500 12px/1.8 var(--mono); color: var(--ink-3); }
.work-item h3 { font-size: 1.15rem; }
.work-item h3 small { display: block; margin-top: 4px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.work-item p { color: var(--ink-2); font-size: 15.5px; }
.work-item .tags { margin-top: 10px; }

/* ---------- Writing (auto-hidden until there are published articles) ---------- */
.write-list { position: relative; }
.write-list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dash) 0 0 / 8px 2px repeat-x; }
.write-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0 23px; background: var(--dash) 0 100% / 8px 2px repeat-x; }
.write-item time { padding-top: 3px; color: var(--ink-3); font: 500 12px/1.7 var(--mono); }
.write-item h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.write-item h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.write-item h3 a:hover { text-decoration-color: var(--accent); color: var(--accent-ink); }
.write-item p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

/* ---------- Repo viewer ---------- */
.how-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 40px; }
.how-intro .lede { max-width: 46ch; }
.rules { position: relative; counter-reset: rule; }
.rules::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dash) 0 0 / 8px 2px repeat-x; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 13px 0 14px; background: var(--dash) 0 100% / 8px 2px repeat-x; font-size: 15.5px; color: var(--ink-2); }
.rules li::before { content: "[" counter(rule, decimal-leading-zero) "]"; font: 500 12px/1.9 var(--mono); color: var(--accent-ink); }
.rules b { color: var(--ink); font-weight: 600; }
.repo { position: relative; isolation: isolate; margin: 4px 16px 16px 4px; border: 0; border-radius: 0; background: transparent; color: var(--t-fg); font: 400 13px/1.7 var(--mono); box-shadow: var(--f4-ink); }
.repo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 38px; padding: 0 12px; background: var(--t-bg-2); border-bottom: 2px solid var(--t-line); color: var(--t-dim); font-size: 12px; }
.repo-bar .crumb b { color: var(--t-fg); font-weight: 500; }
.repo-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 380px; background: var(--t-bg); }
.tree { padding: 10px 0; border-right: 2px solid var(--t-line); background: #0b0f14; font-size: 12.5px; }
.tree .dir { display: block; padding: 3px 14px; color: var(--t-dim); }
.tree .dir.d1 { padding-left: 14px; } .tree .dir.d2 { padding-left: 28px; }
.tree button { position: relative; display: block; width: 100%; padding: 3px 14px 3px 38px; text-align: left; color: var(--t-fg); font: inherit; border-left: 0; }
.tree button::before { content: ""; position: absolute; left: 24px; top: 0.78em; width: 6px; height: 6px; background: var(--t-dim); }
.tree button.d2 { padding-left: 48px; }
.tree button.d2::before { left: 34px; }
.tree button:hover { background: #161b22; }
.tree button[aria-selected="true"] { background: var(--t-fg); color: var(--t-bg); }
.tree button[aria-selected="true"]::before { background: var(--accent); }
.tree button:focus-visible { outline-offset: -2px; }
.code-pane { min-width: 0; overflow: auto; max-height: 420px; scrollbar-width: thin; scrollbar-color: #30363d transparent; }
.code-pane pre { margin: 0; padding: 12px 0 14px; counter-reset: ln; font: inherit; tab-size: 2; }
.code-pane .cl { display: block; padding: 0 18px 0 0; white-space: pre; }
.code-pane .cl::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; margin-right: 14px; padding-right: 12px; text-align: right; color: #4c5561; user-select: none; }
.repo-status { display: flex; justify-content: space-between; gap: 12px; height: 28px; align-items: center; padding: 0 12px; background: var(--t-bg-2); border-top: 2px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; }
.tk-c { color: #8b949e; font-style: italic; } .tk-k { color: #ff7b72; } .tk-s { color: #a5d6ff; } .tk-n { color: #79c0ff; } .tk-f { color: #d2a8ff; }
.tk-p { color: #ffa657; } .tk-h { color: #79c0ff; font-weight: 600; } .tk-y { color: #7ee787; } .tk-b { color: var(--accent-light); } .tk-d { color: #6e7681; }
.tk-ok { color: #3fb950; } .tk-warn { color: #e3b341; }

/* ---------- With and without AI: the evidence lines inside a row ---------- */
.proof { margin-top: 14px; display: grid; gap: 10px; }
.proof li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.proof li > span:first-child { font: 500 12px/1.9 var(--mono); color: var(--ink-3); }
.proof li > span:first-child::before { content: "> "; color: var(--accent-ink); }

/* ---------- Other sides (previews of the two other dialects) ---------- */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 4px 16px 16px 4px; }
.side { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr; border: 0; border-radius: 0; background: var(--white); color: var(--ink); box-shadow: var(--f4-ink); transition: transform 0.12s steps(2); }
.side:hover, .side:focus-visible { transform: translate(-3px, -3px); }
.side:hover::after, .side:focus-visible::after { transform: translate(15px, 15px); }
.side-prev { height: 190px; border-bottom: 4px solid var(--ink); position: relative; overflow: hidden; }
.side-txt { padding: 18px 20px 20px; background: var(--white); }
.side-txt h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1.3rem; }
.side-txt h3 .ic { font-size: 20px; }
.side:hover h3 .ic { color: var(--accent); }
.side-txt p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
/* store preview */
.prev-store { background: #fff; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.prev-store .bar { grid-column: 1 / -1; height: 8px; display: flex; gap: 6px; align-items: center; }
.prev-store .bar i { width: 34px; height: 4px; background: var(--line); display: block; }
.prev-store .bar i:first-child { width: 54px; background: var(--ink); }
.prev-store .p { display: grid; gap: 6px; }
.prev-store .p b { display: block; aspect-ratio: 1 / 0.82; background: #eeeae0; }
.prev-store .p:nth-child(3) b { background: #e6efe0; } .prev-store .p:nth-child(4) b { background: #efe6db; } .prev-store .p:nth-child(5) b { background: #e7e4ef; }
.prev-store .p span { display: block; height: 5px; width: 70%; background: var(--ink); }
.prev-store .p em { display: block; height: 4px; width: 34%; background: var(--line-2); }
/* dashboard preview */
.prev-dash { background: #efece4; display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.prev-dash .sb { background: var(--ink); }
.prev-dash .mn { padding: 12px; display: grid; gap: 10px; align-content: start; }
.prev-dash .kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prev-dash .kp div { background: #fff; border: 2px solid var(--line); padding: 8px; }
.prev-dash .kp b { display: block; height: 4px; width: 50%; background: var(--line-2); margin-bottom: 8px; }
.prev-dash .kp span { display: block; height: 9px; width: 70%; background: var(--ink); }
.prev-dash .ch { background: #fff; border: 2px solid var(--line); height: 82px; padding: 8px; }
.prev-dash svg { width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.contact-big { display: inline-block; font: 400 75px/1 var(--pixel); font-synthesis: none; letter-spacing: 0; padding-bottom: 6px; border-bottom: 6px solid var(--accent); overflow-wrap: anywhere; transition: none; }
.contact-big:hover { color: var(--accent-ink); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-list { position: relative; margin-top: 34px; max-width: 560px; }
.contact-list:not(:has(a:not([hidden]))) { display: none; }
.contact-list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dash) 0 0 / 8px 2px repeat-x; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0 14px; background: var(--dash) 0 100% / 8px 2px repeat-x; font-weight: 500; }
.contact-list a span { color: var(--ink-3); font: 400 13px/1 var(--mono); }
.contact-list a:hover { color: var(--accent-ink); }

/* ---------- Footer ---------- */
.foot { position: relative; padding: 26px 0 40px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dash-ink) 0 0 / 8px 4px repeat-x; }

/* ---------- Command menu, drawn in the same dialect on this page ---------- */
.page-home .cmdk-panel { border: 4px solid var(--ink); border-radius: 0; box-shadow: 10px 10px 0 rgba(21, 19, 15, 0.32); }
.page-home .cmdk-item { border-radius: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 { font-size: 60px; }
  .contact-big { font-size: 60px; }
}
@media (max-width: 980px) {
  .sec-head .h2 { font-size: 30px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { position: static; }
  .sec-head p { max-width: 56ch; }
  .how-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: minmax(0, 1fr); padding: 18px 12px 19px; }
  a.row { padding-right: 40px; }
  a.row::after { top: 20px; }
  .work-item, .write-item { grid-template-columns: minmax(0, 1fr); }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .repo-body { grid-template-columns: minmax(0, 1fr); }
  .tree { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 2px solid var(--t-line); }
  .tree .dir { display: none; }
  .tree button, .tree button.d2 { width: auto; flex: none; padding: 9px 14px 9px 26px; border-bottom: 2px solid transparent; white-space: nowrap; }
  .tree button::before, .tree button.d2::before { left: 12px; top: 1.2em; }
  .tree button[aria-selected="true"] { border-bottom-color: var(--accent-light); }
  .term-screen { height: 380px; font-size: 13px; }
  .term-status [data-status] { display: none; }
  .chip { text-align: left; }
  .facts div { grid-template-columns: 82px minmax(0, 1fr); }
  .code-pane .cl::before { width: 34px; margin-right: 10px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 45px; }
  .contact-big { font-size: 45px; }
  .term, .repo { margin: 4px 12px 14px 4px; }
  .term::after, .repo::after, .side::after { transform: translate(10px, 10px); }
  .sides { padding-right: 12px; }
}
