/* Aentic AI-work site. Built on Aentic Instrument Panel v1 tokens.
   Light surfaces are a neutral paper (not cream); the hero is always the dark "instrument" view. */
:root {
  --bg-base: #ECEDEA; --bg-surface: #F7F7F5; --bg-elevated: #FFFFFF; --bg-inset: #E4E5E1;
  --bg-hover: #EAEBE7; --bg-active: #DFE0DB;
  --line-subtle: #E3E4E0; --line-default: #D2D3CE; --line-emphasis: #9A9B95;
  --text-primary: #17181A; --text-secondary: #4A4C50; --text-muted: #62646A; --text-faint: #86888D;
  --act: #3D5E86; --act-strong: #2C4A6E; --act-bg: rgba(61,94,134,.10); --on-act: #FFFFFF;
  --ok: #276C49; --ok-bg: rgba(39,108,73,.10);
  --warn: #87570A; --warn-bg: rgba(135,87,10,.12);
  --block: #AD382E; --block-bg: rgba(173,56,46,.10);
  --live: #126670; --live-bg: rgba(18,102,112,.10);
  --won: #6A4EA2; --won-bg: rgba(106,78,162,.10);

  /* the dark instrument view (hero, header over hero) — same in both themes */
  --ink: #1E2127; --ink-2: #262A31; --ink-line: rgba(236,232,225,.14); --ink-line-2: rgba(236,232,225,.26);
  --ink-text: #ECE8E1; --ink-text-2: #B9B4AA; --ink-muted: #8E8A82;
  --ink-act: #AEC4DE; --ink-warn: #E0AE58; --ink-block: #E57F74; --ink-live: #5FC4CE;

  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1200px; --gutter: clamp(20px, 4vw, 40px); --top-h: 64px;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --shadow-pop: 0 6px 20px rgba(23,24,26,.10), 0 1px 3px rgba(23,24,26,.08);
  --shadow-overlay: 0 24px 60px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.30);
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #0E0F11; --bg-surface: #141518; --bg-elevated: #1B1C20; --bg-inset: #0B0C0D;
    --bg-hover: #202227; --bg-active: #272A30;
    --line-subtle: #1F2125; --line-default: #2A2D32; --line-emphasis: #444850;
    --text-primary: #ECEAE6; --text-secondary: #A6A49F; --text-muted: #8C8A85; --text-faint: #6B6A66;
    --act: #8FA8C8; --act-strong: #AEC4DE; --act-bg: rgba(143,168,200,.10); --on-act: #0E0F11;
    --ok: #6FBF8F; --ok-bg: rgba(111,191,143,.10);
    --warn: #D9A348; --warn-bg: rgba(217,163,72,.12);
    --block: #D96A5F; --block-bg: rgba(217,106,95,.12);
    --live: #5FC4CE; --live-bg: rgba(95,196,206,.10);
    --won: #A98FD0; --won-bg: rgba(169,143,208,.10);
    --shadow-pop: 0 6px 20px rgba(0,0,0,.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-surface); color: var(--text-primary);
  font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--act); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--act-strong); }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-elevated); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.data { font-family: var(--data); font-variant-numeric: tabular-nums; }
.micro { font-size: 11px; line-height: 14px; }
.muted { color: var(--text-muted); }
.wordmark { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1; letter-spacing: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-emphasis); border-radius: var(--r-md); background: var(--bg-elevated);
  color: var(--text-primary); font: 500 14px/1 var(--ui); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 110ms, border-color 110ms, color 110ms, transform 110ms; }
.btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--act); border-color: var(--act); color: var(--on-act); }
.btn-primary:hover { background: var(--act-strong); border-color: var(--act-strong); color: var(--on-act); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn-light { background: var(--ink-text); border-color: var(--ink-text); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; border-color: var(--ink-line-2); color: var(--ink-text); }
.btn-outline-light:hover { background: rgba(236,232,225,.08); color: var(--ink-text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--r-sm);
  font: 500 11px/14px var(--data); white-space: nowrap; }
.chip-live { color: var(--live); background: var(--live-bg); }
.chip-shipped { color: var(--won); background: var(--won-bg); }
.chip-progress, .chip-warn { color: var(--warn); background: var(--warn-bg); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h);
  background: var(--bg-surface); border-bottom: 1px solid var(--line-default);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease); }
.top-inner { height: 100%; max-width: calc(var(--wrap) + 160px); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text-primary); min-width: 0; }
.brand:hover { color: var(--text-primary); }
.brand-div { width: 1px; height: 22px; background: var(--line-default); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/16px var(--ui); color: var(--text-secondary); white-space: nowrap; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live);
  opacity: 0; animation: live-ring 2.4s var(--ease) infinite; }
@keyframes live-ring { 0% { transform: scale(.4); opacity: .8; } 70%, 100% { transform: scale(1.4); opacity: 0; } }

.nav { position: relative; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; color: var(--text-secondary); font-size: 14px; text-decoration: none;
  border-radius: var(--r-md); transition: color 110ms, background-color 110ms; }
.nav a:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav a[aria-current="true"] { color: var(--text-primary); }
.nav-ink { position: absolute; left: 0; bottom: -13px; height: 2px; width: 0; background: var(--act); opacity: 0;
  transition: transform 260ms var(--ease), width 260ms var(--ease), opacity 180ms; }
.nav.has-ink .nav-ink { opacity: 1; }

.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.clock { font-size: 12px; color: var(--text-muted); margin-right: 6px; white-space: nowrap; }
.clock-city { font-family: var(--ui); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }

.menu-btn { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--line-emphasis); background: transparent; color: inherit; font: 500 13px/1 var(--ui); cursor: pointer; }
.menu-icon { position: relative; width: 14px; height: 10px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform 180ms var(--ease), top 180ms var(--ease); }
.menu-icon i:first-child { top: 2px; } .menu-icon i:last-child { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 4.5px; transform: rotate(-45deg); }
.menu-sheet { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-elevated);
  border-bottom: 1px solid var(--line-default); box-shadow: var(--shadow-pop); padding: 8px var(--gutter) 20px; }
.menu-sheet ul { list-style: none; }
.menu-sheet li + li { border-top: 1px solid var(--line-subtle); }
.menu-sheet ul a { display: block; padding: 14px 2px; color: var(--text-primary); text-decoration: none; font-size: 17px; }
.menu-actions { display: grid; gap: 10px; margin-top: 12px; }
.menu-actions .btn { justify-content: center; min-height: 48px; }

/* header over the dark hero (home page, before scrolling past the hero) */
.is-home .top:not(.is-solid) { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.is-home .top.is-solid { position: fixed; left: 0; right: 0; }
.is-home .top:not(.is-solid) .brand,
.is-home .top:not(.is-solid) .status,
.is-home .top:not(.is-solid) .nav a,
.is-home .top:not(.is-solid) .clock,
.is-home .top:not(.is-solid) .btn-ghost,
.is-home .top:not(.is-solid) .menu-btn { color: var(--ink-text); }
.is-home .top:not(.is-solid) .status, .is-home .top:not(.is-solid) .clock { color: var(--ink-text-2); }
.is-home .top:not(.is-solid) .brand-div { background: var(--ink-line-2); }
.is-home .top:not(.is-solid) .nav a:hover, .is-home .top:not(.is-solid) .btn-ghost:hover { background: rgba(236,232,225,.08); }
.is-home .top:not(.is-solid) .live-dot { background: var(--ink-live); }
.is-home .top:not(.is-solid) .live-dot::after { border-color: var(--ink-live); }
.is-home .top:not(.is-solid) .menu-btn { border-color: var(--ink-line-2); }
.is-home .top:not(.is-solid) .btn-primary { background: var(--ink-text); border-color: var(--ink-text); color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--ink-text); background: var(--ink);
  padding: calc(var(--top-h) + clamp(48px, 8vw, 104px)) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background: url("/assets/hero-orrery.jpg") 22% 42% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,33,39,.92) 0%, rgba(30,33,39,.72) 36%, rgba(30,33,39,.18) 62%, rgba(30,33,39,.05) 100%),
              linear-gradient(180deg, rgba(30,33,39,.35) 0%, rgba(30,33,39,0) 30%, rgba(30,33,39,.75) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.0;
  letter-spacing: -0.015em; max-width: 15ch; text-wrap: balance; }
.hero-lead { margin-top: 26px; font-size: 18px; line-height: 1.6; color: var(--ink-text-2); max-width: 54ch; }
.hero-facts { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--ink-line); max-width: 54ch;
  font-size: 13px; line-height: 1.6; color: var(--ink-muted); }

/* the example review card: the one memorable thing */
.review { background: rgba(20,22,27,.80); border: 1px solid var(--ink-line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-overlay); padding: 20px 22px 18px; color: var(--ink-text); max-width: 480px; justify-self: end; width: 100%; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink-line); }
.review-title { font-size: 13px; font-weight: 600; }
.review .chip-warn { color: var(--ink-warn); background: rgba(224,174,88,.14); }
.review-prompt { margin-top: 14px; font-size: 13px; color: var(--ink-text); }
.review-prompt .muted { color: var(--ink-muted); margin-right: 8px; }
.review-answer { margin-top: 10px; padding: 12px 14px; background: rgba(0,0,0,.25); border-radius: var(--r-md);
  font-size: 15px; line-height: 1.65; color: var(--ink-text-2); }
.review mark { color: var(--ink-text); background: transparent; position: relative; padding: 0 1px;
  text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: background-color 160ms; }
.review mark[data-n="1"], .review mark[data-n="3"] { text-decoration-color: var(--ink-block); }
.review mark[data-n="2"] { text-decoration-color: var(--ink-warn); }
.review mark::after { content: attr(data-n); position: relative; top: -.55em; margin-left: 2px;
  font: 500 10px/1 var(--data); color: var(--ink-muted); }
.review mark.is-hot { background: rgba(236,232,225,.10); border-radius: 2px; }
.review-notes { list-style: none; margin-top: 14px; display: grid; gap: 2px; }
.review-notes li { position: relative; padding: 7px 8px 7px 30px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.5;
  color: var(--ink-text-2); cursor: default; transition: background-color 160ms; }
.review-notes li::before { content: attr(data-n); position: absolute; left: 8px; top: 8px; width: 15px; height: 15px;
  display: grid; place-items: center; border-radius: 50%; font: 500 10px/1 var(--data); color: var(--ink); background: var(--ink-block); }
.review-notes li[data-n="2"]::before { background: var(--ink-warn); }
.review-notes li b { color: var(--ink-text); font-weight: 600; }
.review-notes li.is-hot { background: rgba(236,232,225,.07); }
.review-scores { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ink-line); }
.review-scores dt { font: 400 11px/14px var(--ui); color: var(--ink-muted); }
.review-scores dd { font-size: 22px; line-height: 28px; color: var(--ink-text); }
.review-scores small { font-size: 12px; color: var(--ink-muted); }

/* one orchestrated moment: the review marks itself up on load */
@media (prefers-reduced-motion: no-preference) {
  .js .review mark { text-decoration-color: transparent; transition: text-decoration-color 400ms var(--ease), background-color 160ms; }
  .js .review-notes li, .js .review-scores { opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease), transform 400ms var(--ease), background-color 160ms; }
  .js .review.is-marked mark[data-n="1"], .js .review.is-marked mark[data-n="3"] { text-decoration-color: var(--ink-block); }
  .js .review.is-marked mark[data-n="2"] { text-decoration-color: var(--ink-warn); }
  .js .review.is-marked .review-notes li, .js .review.is-marked .review-scores { opacity: 1; transform: none; }
  .js .review.is-marked mark[data-n="2"], .js .review.is-marked .review-notes li[data-n="2"] { transition-delay: 450ms; }
  .js .review.is-marked mark[data-n="3"], .js .review.is-marked .review-notes li[data-n="3"] { transition-delay: 900ms; }
  .js .review.is-marked .review-scores { transition-delay: 1350ms; }
}

/* ---------- bands ---------- */
.band { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line-default); }
.band-inset { background: var(--bg-base); }
.sec-head { margin-bottom: 36px; display: grid; gap: 10px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.sec-sub { color: var(--text-secondary); max-width: 62ch; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text-primary); }
.services article { padding: 22px 28px 4px 0; }
.services article + article { padding-left: 28px; border-left: 1px solid var(--line-default); }
.services h3 { font-size: 18px; margin-bottom: 14px; }
.services ul { list-style: none; display: grid; gap: 12px; }
.services li { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.feature h2 { font-size: clamp(30px, 3.6vw, 44px); }
.feature-status { margin: 12px 0 18px; }
.spec-list { background: var(--bg-surface); border: 1px solid var(--line-default); border-radius: var(--r-md); }
.spec-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 18px; }
.spec-list > div + div { border-top: 1px solid var(--line-subtle); }
.spec-list dt { font-size: 13px; color: var(--text-muted); }
.spec-list dd { font-size: 14px; }

/* work list with thumbnails */
.work-list { list-style: none; border-top: 2px solid var(--text-primary); }
.work-row { border-bottom: 1px solid var(--line-default); }
.work-row a { display: grid; grid-template-columns: 248px minmax(0, 1fr) 128px; gap: 32px; align-items: center;
  padding: 22px 0; color: inherit; text-decoration: none; }
.work-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line-default); background: var(--bg-inset); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.work-main { display: grid; gap: 6px; }
.work-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.work-row a:hover .work-name { color: var(--act); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.work-lede { font-size: 14px; line-height: 1.55; color: var(--text-secondary); max-width: 68ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--text-muted); }
.work-meta .data { font-size: 12px; }
.work-row .chip { justify-self: end; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.timeline { list-style: none; border-top: 2px solid var(--text-primary); }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-default); }
.timeline h3 { font-size: 16px; margin-bottom: 4px; }
.timeline .muted { font-size: 14px; }
.when { font-size: 12px; color: var(--text-muted); padding-top: 3px; }
.skills { border-top: 2px solid var(--text-primary); }
.skills > div { padding: 16px 0; border-bottom: 1px solid var(--line-default); }
.skills dt { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.skills dd { font-size: 14px; color: var(--text-secondary); }

.contact { background: var(--ink); color: var(--ink-text); border-bottom: 0; }
.contact .lead { color: var(--ink-text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 18px; }
.contact-list { border-top: 1px solid var(--ink-line-2); }
.contact-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid var(--ink-line); font-size: 15px; }
.contact-list dt { font-size: 13px; color: var(--ink-muted); }
.contact-list a { color: var(--ink-act); }
.contact-list a:hover { color: #fff; }
.contact :focus-visible { outline-color: var(--ink-act); }

.foot { padding: 40px 0; background: var(--ink); color: var(--ink-text); border-top: 1px solid var(--ink-line); }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; }
.foot .muted { color: var(--ink-muted); font-size: 13px; margin-top: 8px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-links a { color: var(--ink-text-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink-text); text-decoration: underline; }

/* ---------- case-study pages (markup copied verbatim from aentic.ai) ---------- */
.project { padding-top: 36px; padding-bottom: 88px; }
.crumb { font-size: 14px; margin-bottom: 32px; }
.crumb a { text-decoration: none; color: var(--text-muted); }
.crumb a::before { content: "‹ "; }
.crumb a:hover { color: var(--text-primary); }
.project-page { max-width: 860px; }
.project .mono { font-family: var(--data); }
.project .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.project .kicker b { color: var(--text-primary); font-weight: 500; }
.project-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; margin: 18px 0 20px; }
.project-head h1 em { font-style: normal; }
.project .lede { font-size: 19px; line-height: 1.6; color: var(--text-secondary); }
.project .lesson { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--line-emphasis); color: var(--text-muted); font-style: italic; }
.project .btn-accent { margin-top: 20px; }
.project-page section, .project-page article { margin-top: 48px; }
.project-page h2.mono, .readme h2 { font: 600 15px/20px var(--ui); color: var(--text-primary);
  padding-bottom: 10px; border-bottom: 2px solid var(--text-primary); margin-bottom: 18px; }
.brief { font-size: 16px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 24px; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; border: 1px solid var(--line-default); border-radius: var(--r-md); background: var(--bg-inset); }
.gallery figcaption { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-top: 8px; }
.spec dl { border: 1px solid var(--line-default); border-radius: var(--r-md); background: var(--bg-elevated);
  display: grid; grid-template-columns: 150px 1fr; }
.spec dt, .spec dd { padding: 12px 16px; border-top: 1px solid var(--line-subtle); font-size: 14px; }
.spec dt { color: var(--text-muted); }
.spec dt:first-of-type, .spec dd:first-of-type { border-top: 0; }
.readme .block + .block { margin-top: 40px; }
.readme p, .readme li { color: var(--text-secondary); font-size: 15px; }
.readme p + p, .readme p + ul, .readme ul + p { margin-top: 12px; }
.readme ul, .readme ol { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.readme strong { color: var(--text-primary); font-weight: 600; }
.project code { font-family: var(--data); font-size: .88em; background: var(--bg-inset); padding: 1px 5px; border-radius: var(--r-sm); }
.readme table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; display: block; overflow-x: auto; }
.readme th, .readme td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-default); vertical-align: top; }
.readme th { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.project-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-default); }
.project-foot > p { font-size: 12px; line-height: 1.6; color: var(--text-faint); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line-default); border-radius: var(--r-md);
  text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 15px; transition: background-color 110ms; }
.pager a:hover { background: var(--bg-hover); color: var(--text-primary); }
.pager a .mono { font-family: var(--ui); font-size: 12px; color: var(--text-muted); font-weight: 400; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .clock { display: none; }
}
@media (max-width: 1040px) {
  .top-inner { grid-template-columns: 1fr auto; }
  .nav, .top-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .feature, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .review { justify-self: start; }
  .services { grid-template-columns: 1fr; }
  .services article, .services article + article { padding: 22px 0; border-left: 0; }
  .services article + article { border-top: 1px solid var(--line-default); }
  .work-row a { grid-template-columns: 160px minmax(0, 1fr); gap: 18px; }
  .work-row .chip { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  :root { --top-h: 58px; }
  body { font-size: 15px; }
  .brand-div, .status { display: none; }
  .hero-bg { background-image: url("/assets/hero-orrery-sm.jpg"); background-position: 70% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(30,33,39,.55) 0%, rgba(30,33,39,.85) 45%, rgba(30,33,39,.96) 100%); }
  .hero-lead, .lead { font-size: 16px; }
  .review { padding: 16px; }
  .review-answer { font-size: 14px; }
  .work-row a { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .work-row .chip { grid-column: 1; }
  .timeline li, .contact-list > div, .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dd { border-top: 0; padding-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after { transition: none !important; animation: none !important; }
}
