/* ---------------------------------------------------------------------------
   Fonts. Self-hosted variable woff2, subset to latin + latin-ext.
   The `latin-ext` faces carry the Polish diacritics (ą ć ę ł ń ś ź ż) and are
   only fetched when such a character actually renders -- so the English pages
   never pay for them.
   `format('woff2')` and not the deprecated `format('woff2-variations')`, which
   some browsers ignore outright, silently dropping the face.
--------------------------------------------------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-normal.992074e6a151.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-normal.093b1b15a13c.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: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-italic.103427ac9875.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: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-italic.051ff674494d.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-latin-normal.60467a7343db.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-latin-ext-normal.bbc9b4253365.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;
}
/* No JetBrains Mono italic face on purpose. The prototype's Google Fonts request
   (`JetBrains+Mono:wght@400;500;600`) never asked for one, so its four italic
   mono labels -- the "coming soon" tags and the Drifters build stub -- were
   always browser-synthesized obliques. Shipping the real faces would add 42 KB
   for a rendering the design never actually had. `font-synthesis-style` stays
   at its default so they keep slanting. */

/* ---------------------------------------------------------------------------
   Theme tokens. These were computed in JS in the prototype (`renderVals()`),
   which meant the server could not know them and every load flashed the wrong
   theme. They are now plain custom properties, set from `data-theme` on <html>
   by a blocking inline script before first paint.
--------------------------------------------------------------------------- */
:root,
:root[data-theme='dark'] {
  --accent: #E3A85C;
  --bg: #120f0b;
  --bg-visual: #120f0b;
  --fg: #ece7df;
  --grain-opacity: 0.05;
  --grain-blend: overlay;
}

:root[data-theme='light'] {
  /* Darker accent: #E3A85C on cream is ~1.9:1 against the background and
     fails WCAG AA for text. #9C6A2E was 4.2:1 on the cream and 3.7:1 on the
     gradient's darkest stop; #8B5B25 clears 4.5:1 on both and on the panel
     tints (2026-11-09). */
  --accent: #8B5B25;
  --bg: #f6f2ea;
  --bg-visual: linear-gradient(165deg, #faf7f0 0%, #f1e9da 55%, #ede4d2 100%);
  --fg: #211d18;
  --grain-opacity: 0.06;
  --grain-blend: multiply;
}

:root {
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Alpha ramps over --fg, named by percentage. */
  --fg-04: color-mix(in srgb, var(--fg) 4%, transparent);
  --fg-10: color-mix(in srgb, var(--fg) 10%, transparent);
  --fg-12: color-mix(in srgb, var(--fg) 12%, transparent);
  --fg-15: color-mix(in srgb, var(--fg) 15%, transparent);
  --fg-20: color-mix(in srgb, var(--fg) 20%, transparent);
  --fg-25: color-mix(in srgb, var(--fg) 25%, transparent);
  --fg-30: color-mix(in srgb, var(--fg) 30%, transparent);
  --fg-35: color-mix(in srgb, var(--fg) 35%, transparent);
  --fg-40: color-mix(in srgb, var(--fg) 40%, transparent);
  --fg-45: color-mix(in srgb, var(--fg) 45%, transparent);
  --fg-50: color-mix(in srgb, var(--fg) 50%, transparent);
  --fg-55: color-mix(in srgb, var(--fg) 55%, transparent);
  --fg-60: color-mix(in srgb, var(--fg) 60%, transparent);
  --fg-65: color-mix(in srgb, var(--fg) 65%, transparent);
  --fg-70: color-mix(in srgb, var(--fg) 70%, transparent);
  --fg-75: color-mix(in srgb, var(--fg) 75%, transparent);
  --fg-85: color-mix(in srgb, var(--fg) 85%, transparent);
  --fg-90: color-mix(in srgb, var(--fg) 90%, transparent);
  --accent-50: color-mix(in srgb, var(--accent) 50%, transparent);
  --accent-70: color-mix(in srgb, var(--accent) 70%, transparent);
  --accent-85: color-mix(in srgb, var(--accent) 85%, transparent);

  /* Placeholder art (portrait slot, screenshot slot, diagram slot). The
     prototype hardcodes these dark values in both themes -- they stand in for
     real images, so they do not track the theme. */
  --slot-ink: #8a7a63;
  --slot-stripes: repeating-linear-gradient(135deg, #1a1510, #1a1510 10px, #221b13 10px, #221b13 20px);

  --shell: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --rule: 1px solid var(--fg-12);
  /* Height of the mobile bottom nav bar, safe-area included, for anything
     pinned to the bottom edge to sit above. 0 above 720px, and 0 again on
     mobile while the bar is tucked away -- see the <=720px block. */
  --bar-offset: 0px;
  /* Height of the calculator's phone bar while it is showing (lander.js
     sets data-calc-bar on <html>), so the chips above ride over it too. */
  --calc-bar-h: 0px;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* No blue flash on tap: the site has its own hover and checked states and
   the default highlight sits on top of them in the wrong colour. */
* { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  /* No `background-attachment: fixed` -- it forces a repaint on every scroll
     frame on mobile. The gradient already spans the body's full height. */
  background: var(--bg-visual);
  color: var(--fg);
  font-family: var(--font-sans);
  /* Real 300..600 axis is loaded; never let the browser fake a weight. */
  font-synthesis-weight: none;
  position: relative;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* In-page jumps glide rather than teleport. Scoped to no-preference: the
   blanket reduced-motion rule below zeroes durations, but `scroll-behavior` is
   not a duration and would keep smooth-scrolling regardless. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

/* --- grain ---------------------------------------------------------------- */
/* The prototype's SVG had no width/height, so as a background-image it had no
   intrinsic size and the browser rasterized feTurbulence across the whole
   viewport -- then again on every resize. Giving it 128x128 plus
   stitchTiles='stitch' rasterizes the noise once and tiles it seamlessly.
   Same look, a fraction of the paint cost. */
.grain {
  /* Absolute, not fixed: the grain scrolls with the page as in the prototype,
     and fixed + mix-blend-mode is glitchy on iOS Safari. */
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- layout --------------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  /* Footer pinned to the bottom of short pages -- About is one paragraph and
     the footer used to float mid-screen under it. Flex column rather than
     grid because the content block is several sibling sections, not one
     element. Top-level blocks space themselves with padding, so losing margin
     collapse changes nothing. svh, not dvh: with dvh the footer would jump
     every time the mobile browser chrome collapsed. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* --- nav ------------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: 28px 0;
  border-bottom: var(--rule);
  flex-wrap: wrap;
}
.nav__brand { font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav__brand span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  /* Brand left, links and switch right. The switch is a sibling of the links
     rather than a child, so that on mobile the links can leave for the bottom
     bar while the switch stays up here. */
  margin-left: auto;
  gap: clamp(18px, 3vw, 34px);
  font-family: var(--font-mono);
  font-size: 14px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.nav__link { color: var(--fg-60); }
:root[data-theme='light'] .nav__link { color: var(--fg-70); }
/* Home is a tab in the mobile bar only; on desktop the brand is the way home. */
.nav__link--home { display: none; }
.nav__link:hover, .nav__link.active { color: var(--fg); }
/* The word is 18px tall; the target is not. Padding makes each link a
   46px-tall field that reaches half the gap towards its neighbours, so the
   row has no dead space between targets, and the same negative margin
   keeps every word where it was. The brand and the flags get the same
   height. Desktop only: in the phone bar a link already fills its tab. */
@media (min-width: 721px) {
  .nav__link {
    padding: 14px calc(clamp(18px, 3vw, 34px) / 2);
    margin: -14px calc(clamp(18px, 3vw, 34px) / -2);
  }
  .nav__brand { padding: 12px 12px 12px 0; margin: -12px -12px -12px 0; }
  .nav .flag__val { padding: 14px 5px; margin: -6px 0; }
}

/* Language and theme as `--help` flags: name, then the values, the current
   one in the accent and in weight, so colour is not the only signal. Inactive
   values clear 4.5:1 (60% ink on the dark page, 70% on cream). */
.switch { display: flex; align-items: center; gap: 22px; font-family: var(--font-mono); font-size: 14px; }
.flag { display: flex; align-items: center; }
.flag__name { color: var(--fg-55); margin-right: 4px; }
:root[data-theme='light'] .flag__name { color: var(--fg-65); }
.flag__val {
  /* The padding is the target: a thumb aims at "en", not at the 2ch word. */
  padding: 8px 5px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--fg-60);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}
:root[data-theme='light'] .flag__val { color: var(--fg-70); }
.flag__val:hover { color: var(--fg); }
.flag__val[aria-current='true'],
:root[data-theme='dark'] .flag__val[data-theme-set='dark'],
:root[data-theme='light'] .flag__val[data-theme-set='light'] { color: var(--accent); font-weight: 600; cursor: default; }
.flag__sep { width: 1px; height: 12px; background: var(--fg-30); }

/* --- nav: mobile bottom bar ----------------------------------------------- */
/* Below 720px the link row leaves the header and becomes a bar pinned to the
   bottom of the viewport: one tap per destination, all of them under the
   thumb, none hidden behind a hamburger. The language and theme switches stay
   in the header -- they are settings, not destinations.

   The bar tucks away on a scroll down and comes back on a scroll up (see
   theme.js), so a long article gets its screen back while reading. Anything
   else pinned to the bottom edge (the back-to-top and like chips) sits on
   --bar-offset, which the hidden state zeroes, so they ride down with it. */
@media (max-width: 520px) {
  .flag__name { display: none; }
}
/* 360px phones: brand and both flags on one row needs these last 10px. */
@media (max-width: 380px) {
  .nav .switch { gap: 8px; }
  .switch .flag__val { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 720px) {
  :root {
    --bar-h: 54px;
    --bar-offset: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  }
  :root[data-bar-hidden] { --bar-offset: 0px; }
  /* Room for the bar under the footer, so the last line is never under it. */
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  /* The bar's reserved strip comes off the shell's minimum, or a short page
     would always scroll by exactly the bar's height. */
  .shell { min-height: calc(100svh - var(--bar-h) - env(safe-area-inset-bottom, 0px)); }

  .nav { padding: 20px 0; gap: 10px 8px; }
  /* Beside the brand when it fits, on its own row when it does not. */
  .switch { margin-left: auto; gap: 14px; }
  .flag__val { padding: 10px 6px; }

  .nav__links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    gap: 0;
    flex-wrap: nowrap;
    height: var(--bar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
    /* Mostly the page colour, blurred over whatever is behind it. The page
       background is a gradient, so a flat --bg slab would sit a shade off at
       the bottom of a long page; letting some of the page through hides that. */
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: var(--rule);
    transform: translateY(0);
    transition: transform 0.25s ease;
  }
  :root[data-bar-hidden] .nav__links { transform: translateY(100%); }

  .nav__link--home { display: flex; }
  .nav__link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 13px;
    text-transform: lowercase;
    color: var(--fg-60);
    /* The active mark is a 2px line on the tab's top edge, drawn over the
       bar's own 1px rule. */
    margin-top: -1px;
    border-top: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
  }
  /* Tabs as paths -- ~/ko, ~/blog, ~/kontakt -- since the bar is a prompt,
     not an app tray. */
  .nav__link::before { content: "~/"; color: var(--fg-35); }
  .nav__link:hover { color: var(--fg); }
  .nav__link.active { color: var(--accent); border-top-color: var(--accent); }
  .nav__link.active::before { color: var(--accent-70); }
}

/* ---------------------------------------------------------------------------
   Theme change as a reveal. The default View Transitions behaviour is a
   cross-fade of the whole page; here the outgoing snapshot holds still and a
   circular clip grows on the incoming one from the swatch that was clicked,
   so the new theme is uncovered rather than faded in.

   No glow on the leading edge: a drop-shadow would trace the clip circle, but
   `clip-path` is applied *after* `filter`, so the shadow is clipped away with
   everything else outside the circle. The edge stays a clean cut.
--------------------------------------------------------------------------- */
::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
  z-index: 1;
}
::view-transition-new(root) {
  animation: vt-reveal 620ms cubic-bezier(0.65, 0, 0.35, 1);
  mix-blend-mode: normal;
  z-index: 2;
}
/* theme.js sets the origin and radius from the swatch that was clicked, as
   percentages of the viewport (px went astray on scaled displays -- see the
   note in theme.js); custom properties on the root inherit into the
   view-transition pseudo tree. */
@keyframes vt-reveal {
  from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); }
  to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
}

/* --- type ----------------------------------------------------------------- */
.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 20px; }
.h1 { font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 16px; letter-spacing: -0.01em; }
.lede { font-weight: 300; font-size: 17px; color: var(--fg-60); max-width: 480px; margin: 0 0 40px; }

/* The prototype used the glyph U+258C for the terminal cursor, which is absent
   from every latin subset -- it silently fell back to a system font. A box is
   crisper, matches the accent colour, and costs nothing. */
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: currentColor;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --- contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 340px);
  gap: 60px;
  padding: clamp(48px, 8vw, 84px) 0;
  align-items: start;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { border-left: none !important; padding-left: 0 !important; border-top: var(--rule); padding-top: 32px; }
}

/* The lede above the form: the page's lead, so the home hero's ink, and
   its links in the accent, as in the steps on the home page. They are the
   one way from here to the prices. */
.contact-grid .h1 { text-wrap: balance; }
.contact-grid .lede { color: var(--fg-75); line-height: 1.6; }
.contact-grid .lede a { color: var(--accent); }
.contact-grid .lede a:hover { color: var(--fg); }
/* `re:` the post the visitor wrote from, as a mail's subject line. */
.form__re { margin: -18px 0 30px; max-width: 480px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--fg-70); }
.form__re-key { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 22px; max-width: 440px; }
.field { border-bottom: 1px solid var(--fg-20); padding-bottom: 10px; }
/* A label is inline by default, and an inline box takes no vertical margin. */
.field__label { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--fg-55); margin-bottom: 10px; }
:root[data-theme='light'] .field__label { color: var(--fg-65); }
.form__privacy { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--fg-60); max-width: 520px; }
.form__privacy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field input,
.field textarea {
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 15px;
  width: 100%;
  padding: 0;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-30); }
.field:focus-within { border-bottom-color: var(--accent); }

/* "When" on the brief: four chips, the date input only under its chip.
   A fieldset, so the browser's default border and padding go. */
.field--when { margin: 0; padding: 0 0 12px; border-top: none; border-left: none; border-right: none; min-width: 0; }
/* The chips are boxes, so the legend keeps the fields' 10px above them. */
.field--when .field__label { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--fg-20); border-radius: 999px; font-size: 14px; line-height: 1.3; color: var(--fg-70); cursor: pointer; user-select: none; }
.chip input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--fg-50); color: var(--fg); }
.chip:has(input:checked) { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.when__date { display: none; margin-top: 12px; }
.field--when:has(input[value="date"]:checked) .when__date { display: block; }

.btn {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 13px 24px;
  border-radius: 4px;
  cursor: pointer;
  /* No nowrap: the case-study CTAs are a full sentence, and on a 350px
     column an unbreakable button is the widest thing on the page. */
  max-width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }

.errors { font-family: var(--font-mono); font-size: 13px; color: #e2725b; margin: 0; padding: 0; list-style: none; }
:root[data-theme='light'] .errors { color: #a3341f; }
.field__error { margin-top: 6px; }

/* Honeypot. Off-screen rather than display:none -- some bots skip hidden
   inputs, and `visibility:hidden`/`display:none` are the first things they
   check. Screen readers skip it via aria-hidden + tabindex="-1". */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-aside { border-left: var(--rule); padding-left: 40px; }
.contact-aside__heading { font-family: var(--font-mono); font-size: 13px; color: var(--fg-55); margin-bottom: 20px; }
:root[data-theme='light'] .contact-aside__heading { color: var(--fg-65); }
.contact-aside__links { display: flex; flex-direction: column; gap: 16px; font-family: var(--font-mono); font-size: 15px; }
.contact-aside__links a { color: var(--fg-75); }
.contact-aside__links a:hover { color: var(--accent); }

/* --- copy-to-clipboard email ---------------------------------------------- */
/* Still an <a href="mailto:"> in the markup, and JS cancels the navigation to
   copy instead. That ordering matters: with JS off, or if the Clipboard API is
   unavailable (it needs a secure context, so plain http:// on a LAN address
   has none), the link keeps working the old way rather than becoming dead
   text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mail { position: relative; cursor: pointer; }
.mail::after {
  content: attr(data-copied);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border: 1px solid var(--accent-50);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mail.is-copied::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- back to top ---------------------------------------------------------- */
/* Hidden at the top of the page, where it would be pointing at where you
   already are. Revealed by the scroll position itself rather than a JS scroll
   listener -- no handler firing on every frame, and it works with JS off.

   `scroll()` needs the same @supports gate as the coop rail: unsupported, the
   rule falls back to the document timeline, plays once on load and leaves the
   button visible at the very top. Outside the gate it is always visible, which
   is merely redundant rather than broken. */
.totop {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 32px) + var(--bar-offset) + var(--calc-bar-h));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  /* The glyph alone, no box: nothing else on the page sits in a frame.
     The size stays a finger's, the hit area is the whole 42px square. */
  width: 42px;
  height: 42px;
  color: var(--fg-55);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease, bottom 0.25s ease;
}
.totop:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Like sits above the back-to-top chip so the two don't overlap. */
.notelike {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 32px) + 52px + var(--bar-offset) + var(--calc-bar-h));
  z-index: 5;
  margin: 0;
}
.notelike__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 42px;
  padding: 8px 6px 6px;
  border: 1px solid var(--fg-20);
  border-radius: 6px;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
  color: var(--fg-55);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  overflow: visible;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, bottom 0.25s ease;
}
.notelike__btn:hover {
  color: var(--accent);
  border-color: var(--accent-50);
  transform: translateY(-2px);
}
.notelike__btn:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.notelike__icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.notelike[data-liked='1'] .notelike__btn {
  color: var(--accent);
  border-color: var(--accent-50);
  cursor: default;
  transform: none;
}
.notelike[data-liked='1'] .notelike__icon { fill: var(--accent); stroke: var(--accent); }
.notelike[data-liked='1'] .notelike__btn:hover { transform: none; }

/* Both chips stay fixed on phones too, bottom right above the nav bar
   (they ride on --bar-offset). They do cover the last few characters of a
   long line while scrolled to them; keeping them in one place won over
   moving them into the flow. */

.notelike.is-pop .notelike__icon {
  transform-origin: 30% 90%;
  animation: notelike-thumb 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.notelike.is-pop .notelike__n {
  animation: notelike-count 0.4s ease;
}
.notelike.is-pop .notelike__btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  pointer-events: none;
  animation: notelike-ring 0.5s ease-out forwards;
}

@keyframes notelike-thumb {
  0% { transform: scale(1) rotate(0deg); }
  32% { transform: scale(1.4) rotate(-22deg); }
  58% { transform: scale(0.9) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes notelike-count {
  0% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
@keyframes notelike-ring {
  from { opacity: 0.85; transform: scale(0.8); }
  to { opacity: 0; transform: scale(1.5); }
}

@supports (animation-timeline: scroll()) {
  .totop {
    opacity: 0;
    animation: totop-in linear both;
    animation-timeline: scroll();
    /* Appears across the first viewport-and-a-bit of scrolling. */
    animation-range: 220px 520px;
  }
  @keyframes totop-in {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
  }
}

/* --- footer --------------------------------------------------------------- */
.footer {
  margin-top: auto;
  padding: 22px 0 40px;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-35);
}
.footer a:hover { color: var(--fg); }

/* --- footer note (home, case studies) ------------------------------------- */
.footer__note { font-family: var(--font-sans); color: var(--fg-55); max-width: 420px; text-align: right; }
/* A link inside the sentence is in the accent, as in the prose above;
   the footer's other links stand alone and need no mark. */
.footer__note a { color: var(--accent); }

/* --- stack table (home, below the writing) -------------------------------- */

/* --- hero (home) ---------------------------------------------------------- */
.hero { padding: clamp(40px, 5.5vw, 64px) 0 clamp(44px, 6vw, 72px); }
.hero__prompt { font-family: var(--font-mono); font-size: 15px; color: var(--accent); margin-bottom: 24px; min-height: 20px; }
/* One step down from the old 58px: the claim is a longer sentence than the
   name-and-role line it replaced, and at 58px it ran to four lines. */
/* Two sentences set as one block, three lines on a desktop, four on a
   phone; `balance` evens the lines so none ends on a stray word. */
.hero__heading { font-weight: 600; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.hero__sub { font-weight: 300; font-size: 18px; line-height: 1.6; color: var(--fg-75); margin: 22px 0 0; max-width: 34em; }
/* Who, in four facts: mono, split by accent dots. Each fact keeps its words
   together; on a phone a dot ends a line rather than starting the next. */
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 0.75em; list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--fg-60); }
:root[data-theme='light'] .hero__meta { color: var(--fg-70); }
.hero__meta li { white-space: nowrap; }
.hero__meta li + li::before { content: "\00b7"; margin-right: 0.75em; color: var(--accent); }
/* How I work: eyebrow and heading like every other section, then the
   paragraphs beside the agent stack (the grid that used to close the hero). */
.method { padding: clamp(44px, 6vw, 68px) 0; }
.method .eyebrow { margin-bottom: 16px; }
.method__heading { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 0 0 20px; }
.method .readable .method__note { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--fg-55); margin-top: 16px; }
:root[data-theme='light'] .method .readable .method__note { color: var(--fg-65); }
/* Two ways on. The primary is the one filled button on the page. A hover
   neither lifts nor recolours it: one band of light passes over the face
   once, left to right. The band is a second background layer slid across
   by an animation, so no layer is rebuilt and nothing blinks. The price
   link is set as text, no rule under it: the mono face and the hover say
   link. */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 30px 0 0; }
.btn--primary,
.btn--primary:hover {
  /* The band lives in a layer 2.5x the button's width; at 100% it waits
     just off the left edge, at 0% it has left by the right. Repeated on
     :hover because the base .btn:hover repaints a plain face. */
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.42) 50%, transparent 58%) no-repeat 100% 0 / 250% 100%, var(--accent);
}
.btn--primary { border-color: var(--accent); color: var(--bg); padding: 14px 26px; }
.btn--primary:hover { color: var(--bg); animation: btn-shine 0.75s ease-out 1 forwards; }
@keyframes btn-shine {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .btn--primary:hover { animation: none; } }
.hero__alt { font-family: var(--font-mono); font-size: 14px; color: var(--fg-70); padding: 10px 0; transition: color 0.15s ease; }
:root[data-theme='light'] .hero__alt { color: var(--fg-75); }
.hero__alt:hover, :root[data-theme='light'] .hero__alt:hover { color: var(--accent); }
.method .readable a { color: var(--accent); }
.method .readable a:hover { color: var(--fg); }
.method__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
@media (max-width: 820px) { .method__grid { grid-template-columns: 1fr; gap: 40px; } }

/* `tree ~/stack`: the branches are borders, the names sans, the tools mono
   a step in. --tree-x is where the trunk runs; the tick reaches from it to
   the name on the first line of each entry. */
.tree { --tree-x: 7px; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 13.5px; }
.tree__root, .tree__list { line-height: 1.8; }
/* The tree's first line sits level with the prose's first line, which
   stands a heading and its margin lower than the eyebrow. The heading is
   clamp(22px, 2.6vw, 28px) at line-height 1.25 plus a 20px margin, and
   the two lines differ in height (31.5px vs 24.3px), so half of that
   difference centres the tree's line on the prose's. Desktop only;
   stacked, the tree follows its own eyebrow. */
@media (min-width: 821px) {
  .tree__root { margin-top: calc(clamp(22px, 2.6vw, 28px) * 1.25 + 20px + (31.5px - 24.3px) / 2); }
}
.tree .eyebrow { margin-bottom: 14px; }
.tree__root { color: var(--fg-85); }
.tree__list { list-style: none; margin: 0; padding: 0; }
.tree__dir { position: relative; padding-left: 30px; padding-bottom: 4px; }
.tree__dir::before { content: ""; position: absolute; left: var(--tree-x); top: 0; bottom: 0; width: 1px; background: var(--fg-25); }
.tree__dir:last-child::before { bottom: auto; height: 0.95em; }
.tree__dir::after { content: ""; position: absolute; left: var(--tree-x); top: 0.95em; width: 16px; height: 1px; background: var(--fg-25); }
.tree__name { display: block; color: var(--fg-85); }
.tree__files { display: block; padding-left: 22px; color: var(--fg-55); }
:root[data-theme='light'] .tree__files { color: var(--fg-65); }
.tree__dir:last-child .tree__name { color: var(--accent); }
/* Pinned to the column's foot, so it shares a baseline with the NDA line
   closing the prose beside it whatever the text's length in either
   language; the slack lands between the tree and this line. */
.tree__sum { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 1.7; color: var(--fg-45); }
@media (max-width: 820px) { .tree__sum { margin-top: 0; } }
:root[data-theme='light'] .tree__sum { color: var(--fg-60); }

/* The claim above, its two paragraphs of proof, and the agent stack that
   shows the same thing in one glance. Was `.approach__grid`, one section
   further down, back when the hero made a different argument. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
}

/* Signature: the stack as `ps` output. Closed it is a single full-width line --
   one amber owner fanning out to five layers -- so the claim lands without a
   click and without a tall column standing beside a two-line paragraph. Open
   it becomes the table, with what each layer is built with.
   Deliberately not a window like .agent-card below: a table, so the page does
   not tell the same joke twice. */
.ps {
  margin-top: 26px;
  border: 1px solid var(--fg-15);
  border-radius: 8px;
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  font-family: var(--font-mono);
}

.ps__summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 16px;
  font-size: 12.5px;
  /* A fixed line box, not a ratio. The chain and the `~/stack` title swap
     places on open at different font sizes, so a ratio made the summary 9px
     shorter the instant it opened -- the header visibly jolted before the
     panel had begun to expand. Both children now inherit the same line box. */
  line-height: 24px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}
.ps__summary::-webkit-details-marker { display: none; }
.ps__summary:hover .ps__chain-item { color: var(--fg-85); }
/* The rule is always in the box and only becomes visible on open, so the
   summary does not gain a pixel of height at the moment it expands. */
.ps__summary { border-bottom: 1px solid transparent; }
.ps[open] .ps__summary { border-bottom-color: var(--fg-10); border-radius: 8px 8px 0 0; }

/* Two drawn bars rather than a "+" / "\2212" glyph swap: `content` cannot be
   transitioned, so a swap can only ever pop. Rotating the upright bar onto the
   flat one turns the plus into a minus over the same 300ms the panel takes. */
.ps__mark {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 11px;
  height: 11px;
  align-self: center;
}
.ps__mark::before,
.ps__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent);
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
}
.ps__mark::before {
  width: 11px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.ps__mark::after {
  width: 1.5px;
  height: 11px;
  transform: translate(-50%, -50%);
}
.ps[open] .ps__mark::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Closed, the chain carries the message; open, it would only repeat the LAYER
   column, so it gives way to the pane's title. */
.ps__title { display: none; font-size: 11px; color: var(--fg-40); }
.ps[open] .ps__title { display: block; }
.ps[open] .ps__chain { display: none; }
.ps__chain { display: block; min-width: 0; }
.ps__owner { color: var(--accent); }
/* A colon, not an arrow glyph: U+25B8 and U+2192 both fall outside the mono
   subset's unicode-range, so they drop to a fallback face and read as one more
   separator dot -- which turns "one owner, five layers" back into a six-item
   list. The colon carries the ownership and is in every face. Generated rather
   than marked up, so no inter-tag whitespace opens a gap before it. */
.ps__chain .ps__owner::after { content: ":"; color: var(--fg-30); margin-right: 8px; }

/* Separators trail their item rather than leading the next one: when the chain
   wraps on a phone, a line must not open with a stray dot. `nowrap` keeps a
   layer like "backend / API" from splitting across the break. */
.ps__chain-item { color: var(--fg-70); white-space: nowrap; transition: color 0.15s ease; }
.ps__chain-item:not(:last-child)::after {
  content: "\00b7";
  color: var(--fg-25);
  margin: 0 7px;
}

.ps__head, .ps__row {
  display: grid;
  /* LAYER is capped rather than 1fr so it does not open a void between itself
     and STACK; the slack goes to STACK the way real `ps` output packs. */
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 0 16px;
}
.ps__head {
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--fg-30);
  padding-top: 14px;
  padding-bottom: 4px;
}
.ps__list { list-style: none; margin: 0; padding: 0 0 12px; }
.ps__row { font-size: 12.5px; padding-top: 7px; padding-bottom: 7px; }
.ps__layer { color: var(--fg-70); }
.ps__stack { color: var(--fg-45); }

/* <details> has no open/close animation of its own -- the panel simply appears.
   `::details-content` is the handle for it, and `interpolate-size` is what
   makes `block-size: auto` a transitionable value; without it there is no
   target height to animate toward. `content-visibility` has to ride along as a
   discrete transition, otherwise the content unhides instantly and the height
   animates around already-visible rows.

   Progressive enhancement: browsers without `::details-content` ignore all of
   this and the panel snaps open, exactly as it did before.

   No stagger on the rows any more. The height reveal already uncovers them in
   sequence, and fading each one in on top of that was two animations doing one
   job. */
:root { interpolate-size: allow-keywords; }
.ps::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 320ms cubic-bezier(0.4, 0, 0.2, 1),
              content-visibility 320ms allow-discrete;
}
.ps[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .ps::details-content { transition: none; }
  .ps__mark::before, .ps__mark::after { transition: none; }
}

/* Narrow: STACK drops to its own line under LAYER rather than squeezing two
   columns into a phone width. */
@media (max-width: 640px) {
  .ps__head { grid-template-columns: minmax(0, 1fr); }
  .ps__head span:last-child { display: none; }
  .ps__row { grid-template-columns: minmax(0, 1fr); }
  .ps__stack { font-size: 11.5px; }
}

/* --- notes list (home teaser + /notes) ------------------------------------ */
.cs { padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.cs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cs__head .eyebrow { margin-bottom: 0; }
.cs__all {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}
/* The home hero's top padding: a list page starts as high as the home. */
.cs-intro { padding: clamp(40px, 5.5vw, 64px) 0 clamp(28px, 4vw, 40px); }
.cs-intro__heading { font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 0 0 18px; }
/* The lead is prose, so it is set as the home hero's: sans, light, 18px.
   Mono stays for the commands around it. */
.cs-intro__sub { font-weight: 300; font-size: 18px; line-height: 1.6; color: var(--fg-75); max-width: 34em; margin: 0; }
.cs-list { padding-bottom: 32px; }
/* The feed's address closes the index, small and grey: it is there for
   whoever looks for it and takes nothing from the first screen. */
.cs-feed {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0;
  padding: 8px 0 40px;
}
.cs-feed a { color: var(--fg-50); }
.cs-feed a:hover { color: var(--accent); }
:root[data-theme='light'] .cs-feed a { color: var(--fg-65); }
:root[data-theme='light'] .cs-feed a:hover { color: var(--accent); }

/* auto-fill, not auto-fit: a single latest note must not stretch full-row. */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  /* Five rows the cards share (cover, date, title, dek, foot): each card
     is a subgrid, so the title row is as tall as the longest title in the
     row and every dek starts on the same line, titles uncut. */
  grid-template-rows: auto auto auto auto auto;
  gap: 28px;
}
/* No frame: the cover's corners and the gutter draw the card. The hover
   stays what it was, a lift and the title in the accent. */
.cs-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: 12px;
  transition: transform 0.18s ease;
}
/* The global `a:hover { color: var(--accent) }` would repaint every word in
   the card amber. Only the title should react. */
.cs-card:hover { color: inherit; transform: translateY(-3px); }
.cs-card__title {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.cs-card:hover .cs-card__title { color: var(--accent); }
/* Pushes the tag rows to the bottom, so cards of unequal text still line their
   tags up across the row. */
.cs-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-40);
  letter-spacing: 0.04em;
}
.cs-card__hook {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-55);
  /* Three lines: a teaser invites, the post itself tells. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:root[data-theme='light'] .cs-card__hook { color: var(--fg-65); }

.cs-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-card__tags--out { padding-top: 12px; border-top: 1px solid var(--fg-10); }

/* A post's tag: a word in the accent, as under a home card, not a pill.
   They are not links, so nothing about them should look pressable. The
   dot trails its tag, so a wrapped line never starts with one. */
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent-85);
  white-space: nowrap;
}
.tag:not(:last-child)::after { content: "\00b7"; margin: 0 0.6em; }
:root[data-theme='light'] .tag { color: var(--accent); }
.tag--out {
  border-color: var(--accent-50);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* A row of the index. Three columns: the `ls -lt` rail, the text, the still.
   The whole row is the link, so nothing inside it needs its own hit target --
   the title is the feedback. No rule between rows and no band on hover (2026-11-10):
   like the home page, the index is drawn by space, and every row starts on
   the page's left edge, under the heading. */
.cs-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0 30px;
  align-items: start;
  padding: 22px 0;
}
.cs-item--has-art { grid-template-columns: 108px minmax(0, 1fr) 208px; }
/* The global `a:hover` would repaint the whole row amber; only the title reacts. */
a.cs-item:hover { color: inherit; }

/* When it went up and how long it takes -- the two facts a reader scans a
   blog index for before committing. Mono, so the column aligns down the page. */
.cs-item__rail {
  grid-column: 1;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.cs-item__date { display: block; color: var(--fg-60); white-space: nowrap; }
.cs-item__mins { display: block; margin-top: 5px; color: var(--fg-50); white-space: nowrap; }

.cs-item__body { grid-column: 2; min-width: 0; }
.cs-item__series {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-85);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.cs-item__title {
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  transition: color 0.18s ease;
}
a.cs-item:hover .cs-item__title { color: var(--accent); }
.cs-item__hook {
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-60);
  max-width: 60ch;
  margin: 0;
  /* Three lines, as on the home cards: the index invites, the post tells. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* --- series group --------------------------------------------------------- */
/* Shelves are parted by space alone. */
.cs-list > section + section { margin-top: clamp(40px, 5vw, 56px); }
.cs-series__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 4px;
}
.cs-series__head .eyebrow { margin-bottom: 0; }
/* Every command on the blog's lists hangs out one step, to the line a
   series' rail runs down: the page's own `ls` and its heading, each shelf's
   head and the feed's `curl` share an edge, and what they list sits in, under them. */
.cs-list .cs-series__head,
.cs-list .cs-shelf__head,
.cs-intro > .eyebrow,
.cs-intro__heading,
.cs-feed { margin-left: -16px; }
.cs-series__count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-50); white-space: nowrap; }
a.cs-series__count:hover { color: var(--accent); }
/* The rail is the whole device: it says these rows are one sequence. It
   starts grey and warms to amber by the last part: the series builds
   towards something. Solid all the way, never fading out. It hangs in the
   page's margin, so the rows of a series start on the same edge as every
   other row and the rail is the only thing that differs. */
.cs-series__body { position: relative; }
.cs-series__body::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--fg-15), var(--accent));
}
/* The label is the way to the series page; it keeps the eyebrow's colour,
   so it reads as a command, not a button. No underline on hover: the
   comment after the command lights up instead. */
.cs-series__link { display: inline-block; text-decoration: none; }
.cs-series__title { transition: color 0.15s ease; }
.cs-series__link:hover .cs-series__title,
:root[data-theme='light'] .cs-series__link:hover .cs-series__title { color: var(--fg); }
/* The series' title as a comment after the command: the shell's grey, the
   eyebrow's size. On a phone it takes the line under the command. */
.cs-series__title { color: var(--fg-55); margin-left: 0.6em; }
:root[data-theme='light'] .cs-series__title { color: var(--fg-65); }
@media (max-width: 760px) {
  .cs-series__title { display: block; margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
  /* The title sits inside the link, and in a flex row the link ends where
     the count begins: the title broke at the count's edge with the rest of
     its line empty. Here the link takes the whole row and the count is
     pinned to the first line's right end. The empty ::before is a strut in
     the eyebrow's size, so both sit on one baseline. */
  .cs-series__head:has(.cs-series__title) { display: block; position: relative; }
  .cs-series__head:has(.cs-series__title) .cs-series__link { display: block; }
  .cs-series__head:has(.cs-series__title) .cs-series__count { position: absolute; top: 0; right: 0; }
  .cs-series__head:has(.cs-series__title) .cs-series__count::before { content: "\200b"; font-size: 14px; }
}

/* Earlier parts, one line each, under the newest part's full row and on
   its grid: the date in the left column, then the part and the title
   where the full row has its part label and its title. One order on
   every row of the index, and nothing in the right column but a still. */
.cs-parts { display: grid; margin: 0; padding: 0; }
.cs-part {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0 30px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-60);
  transition: color 0.18s ease;
}
.cs-part:hover { color: var(--fg); }
.cs-part__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-50);
  white-space: nowrap;
}
.cs-part__body { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: baseline; min-width: 0; }
.cs-part__n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-85);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cs-part__title { min-width: 0; }

/* The small greys clear 4.5:1 in both themes: 50% ink is the floor on the
   dark page (4.5:1), 65% on the cream's darkest stop (4.7:1), and the
   85% accent, 3.5:1 there, gives way to the full one. The order of the
   greys stays: the date above the minutes, a title above its date. */
:root[data-theme='light'] .cs-item__date,
:root[data-theme='light'] .cs-part { color: var(--fg-70); }
:root[data-theme='light'] .cs-item__mins,
:root[data-theme='light'] .cs-item__hook,
:root[data-theme='light'] .cs-series__count,
:root[data-theme='light'] .cs-part__date,
:root[data-theme='light'] .backlink { color: var(--fg-65); }
:root[data-theme='light'] .cs-item__series,
:root[data-theme='light'] .cs-part__n,
:root[data-theme='light'] .cs-card__foot { color: var(--accent); }
:root[data-theme='light'] .cs-part:hover,
:root[data-theme='light'] .backlink:hover { color: var(--fg); }
:root[data-theme='light'] a.cs-series__count:hover { color: var(--accent); }

/* The standalone and guest shelves: an `ls` label over plain rows. */
.cs-shelf__head { padding: 0 0 4px; }
.cs-shelf__head .eyebrow { margin-bottom: 0; }

/* --- tips ----------------------------------------------------------------- */
/* A tip is a card: what it is about, what it solves, the one command it
   turns on, the pitfall. The share image (apps/notes/cards.py) is the same
   card for a stranger's feed, with room for three lines of the code. The
   cards of a row share their rows (head, title, command, pitfall) through
   a subgrid, so the commands and the pitfalls line up whatever the titles
   take. */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 14px;
}
.tip-grid--page { margin-top: 20px; }
.tip-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 12px;
  min-width: 0;
  padding: 18px 20px 20px;
  border-radius: 10px;
  background: var(--fg-04);
  transition: background 0.18s ease;
}
/* Hover is the surface alone: the card stays where it is and the title
   keeps its colour (Kamil, 2026-11-16). */
a.tip-card:hover { color: inherit; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.tip-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-50);
}
/* The tags are how a reader picks among tips; a long set takes a second
   line, the date keeps its corner. */
.tip-card__tags { min-width: 0; line-height: 1.5; color: var(--accent); }
.tip-card__tags span { white-space: nowrap; }
.tip-card__tags span:not(:last-child)::after { content: " ·"; color: var(--accent-50); }
.tip-card__head time { white-space: nowrap; }
.tip-card__title {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.tip-card__code {
  margin: 0;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--fg-04);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-75);
  align-self: start;
}
/* One command, whole: it breaks at its spaces, and only a single word
   wider than the card breaks inside. */
.tip-card__code { white-space: pre-wrap; overflow-wrap: anywhere; }
.tip-card__code:empty { display: none; }
.tip-card__trap {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-65);
}
.tip-card__mark,
.tip-trap__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.tip-card__mark { margin-right: 0.35em; white-space: nowrap; }
.tip-card__trap code,
.tip-trap code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent);
}
:root[data-theme='light'] .tip-card__head { color: var(--fg-65); }
:root[data-theme='light'] .tip-card__trap { color: var(--fg-70); }

/* The tip page. The dek is the answer, so it is set as text to read, not
   as a quiet lead; the body ends early (the pitfall follows it). */
.tip .tip__answer { font-weight: 400; font-size: 19px; line-height: 1.6; color: var(--fg-90); }
:root[data-theme='light'] .tip .tip__answer { color: var(--fg-90); }
.tip .note-body { padding-bottom: 8px; }
.tip-trap {
  max-width: 680px;
  margin: 28px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
}
.tip-trap__label { margin-bottom: 8px; }
.tip-trap p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--fg-90); }
.tip-foot {
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 32px 0 0;
  padding-bottom: 56px;
}
.tip-checked {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--fg-50);
  flex: 1 1 320px;
}
:root[data-theme='light'] .tip-checked { color: var(--fg-65); }
.tip-share {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-50);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tip-share:hover { color: var(--fg); border-color: var(--fg-25); }
.tip-share.is-copied { color: var(--fg); border-color: var(--accent); }
.tip-more { padding: 0 0 64px; }
/* A phone has no margin for the floating like: there it would sit on the
   text. It joins the foot's row instead, as wide as the button beside it. */
@media (max-width: 720px) {
  .tip-foot .notelike { position: static; }
  .tip-foot .notelike__btn { flex-direction: row; gap: 6px; min-width: 0; padding: 5px 10px; backdrop-filter: none; }
  .tip-foot .notelike__icon { width: 16px; height: 16px; }
}

/* A tip on the blog index: an earlier part's line, with the tags at the
   end where they do not push the titles off one edge. */
.cs-part--tip .cs-part__body { grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; }
.cs-part__tags {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-50);
  white-space: nowrap;
}
/* A tip has no full row above it, so its line is its title: the post
   titles' ink, and their amber under a pointer. */
.cs-part--tip .cs-part__title { color: var(--fg); transition: color 0.18s ease; }
.cs-part--tip:hover .cs-part__title { color: var(--accent); }
:root[data-theme='light'] .cs-part__tags { color: var(--fg-65); }

/* A series page: the index intro, then the intro prose at article measure. */
/* Under the backlink row it starts where an article's head does. */
.cs-intro--series { padding-top: 36px; padding-bottom: 12px; }
.cs-intro__body { max-width: 680px; margin-top: 22px; }
.cs-intro__body p { font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--fg-75); }
.cs-series--page .cs-series__head { padding-top: 24px; }

.cs-card__foot {
  align-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-85);
  letter-spacing: 0.02em;
}

.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--accent-50);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge--muted { border-color: var(--fg-25); color: var(--fg-60); }

/* --- error pages ---------------------------------------------------------- */
.errorpage { padding: clamp(56px, 9vw, 96px) 0; }
.errorpage__out { font-family: var(--font-mono); font-size: 14px; color: var(--fg-45); margin: 0 0 32px; word-break: break-all; }
.errorpage__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.errorpage__link { font-family: var(--font-mono); font-size: 15px; color: var(--fg-60); }
.errorpage__link:hover { color: var(--fg); }

/* --- how we work together (home) ------------------------------------------ */
/* Deliberately the quietest section on the page. Its job is to answer "what
   happens if I write to you", and a prospective client reading it wants
   legibility, not personality -- the hero already
   carry that. The only device is a hairline rail down the step numbers, which
   encodes the one thing that is actually true of this content: it is a
   sequence. */
.coop { padding: clamp(44px, 6vw, 68px) 0; }
.coop .eyebrow { margin-bottom: 16px; }
.coop__heading { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 20px; }

/* The pipeline as the list it always was: three numbered stages, the rail
   stitching one stage to the next, the title
   and text beside. The rail draws itself as you read down and the tag warms
   to the accent as its stage enters view -- scroll-driven, so the motion
   tracks reading position; the section is below the fold and a timed
   reveal would play to nobody. Gated on @supports: without scroll-driven
   timelines the same rules would play once on load, off-screen, and leave
   the rail at scaleY(0). Outside the gate the rail is simply drawn. */
.pipe { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.pipe__stage {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
}
.pipe__stage:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: var(--fg-12);
}
.pipe__n { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--accent); }
.pipe__title { font-weight: 600; font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
.pipe__text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--fg-75); }
.pipe__text a { color: var(--accent); }
.pipe__text a:hover { color: var(--fg); }
/* A footnote under a step: mono, small, grey, its links in the accent
   but no heavier than the words around them. */
.pipe__aside { margin: 10px 0 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--fg-55); }
:root[data-theme='light'] .pipe__aside { color: var(--fg-65); }
.pipe__aside a { color: var(--accent); font-weight: inherit; }
.pipe__aside a:hover { color: var(--fg); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pipe__stage:not(:last-child)::before {
      transform-origin: top;
      animation: coop-rail linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 25%;
    }
    .pipe__n {
      animation: coop-num linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 20%;
    }
  }
}
@keyframes coop-rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes coop-num { from { color: var(--fg-25); } to { color: var(--accent); } }

/* --- closing CTA (home) --------------------------------------------------- */
.cta { padding: clamp(48px, 8vw, 84px) 0 clamp(32px, 5vw, 48px); }
.cta .eyebrow { margin-bottom: 18px; }
.cta__heading { font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; }
.cta__sub { font-weight: 300; font-size: 17px; color: var(--fg-60); max-width: 520px; margin: 0 0 32px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta__link { font-family: var(--font-mono); font-size: 14px; color: var(--fg-55); white-space: nowrap; }
.cta__link:hover { color: var(--fg); }
/* The address reads as a link: accent, a rule under it on hover. A click
   copies it (the "Copied" bubble is .mail::after). */
.cta__addr { font-family: var(--font-mono); font-size: 14px; color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }
.cta__addr:hover { color: var(--fg); text-decoration: underline; }

/* --- about ---------------------------------------------------------------- */
.about {
  /* One column while there is no portrait. With one, this was
     `grid-template-columns: minmax(200px, 260px) 1fr; gap: 60px` and a
     single column under 720px. */
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 52px);
}
.about .eyebrow { margin-bottom: 22px; }
.about__heading { font-weight: 600; font-size: clamp(28px, 4vw, 42px); margin: 0 0 24px; }
.about__bio { font-weight: 300; font-size: 18px; line-height: 1.75; color: var(--fg-70); max-width: 640px; margin: 0; }
.about__bio + .about__bio { margin-top: 20px; }
.about__bio a { color: var(--accent); }
.about__bio a:hover { color: var(--fg); }

/* The sections under the opening share the rhythm of home's sections. */
.about-sec { padding: clamp(44px, 6vw, 68px) 0; border-top: var(--rule); }
.about-sec .eyebrow { margin-bottom: 16px; }
.about-sec__heading { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 20px; }
.about-sec__lede { font-size: 16px; line-height: 1.7; color: var(--fg-60); max-width: 640px; margin: 0 0 28px; }
.about-sec .readable a { color: var(--accent); }
.about-sec .readable a:hover { color: var(--fg); }

/* Projects: same treatment as the lander strip and the calculator result,
   a rule at the left instead of a box (boxes did not work on the
   calculator). The rows are a definition list, problem / what I did /
   result, labels in a narrow column on desktop and stacked above their
   text on phones. */
.proj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.proj { padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.proj__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  max-width: 820px;
  margin-bottom: 10px;
}
.proj__name { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.proj__stack { font-family: var(--font-mono); font-size: 11px; color: var(--fg-40); letter-spacing: 0.04em; }
.proj__title { margin: 0 0 18px; font-weight: 500; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.proj__rows { display: grid; grid-template-columns: 110px 1fr; gap: 12px 20px; margin: 0; max-width: 820px; }
.proj__rows dt { font-family: var(--font-mono); font-size: 12px; color: var(--fg-45); padding-top: 4px; }
.proj__rows dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--fg-75); }
/* The result is the row a client reads: accent label, full-strength text. */
.proj__rows dt.proj__result { color: var(--accent); }
.proj__rows dd.proj__result { color: var(--fg); font-weight: 500; }
.proj__link { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.proj__link:hover { color: var(--fg); }
@media (max-width: 720px) {
  .proj-list { gap: 36px; }
  .proj { padding: 2px 0 2px 16px; }
  .proj__rows { grid-template-columns: 1fr; gap: 4px; }
  .proj__rows dd:not(:last-child) { margin-bottom: 12px; }
}

/* "Not a fit": diff-style minus lines in the accent. */
.about-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.about-list li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.7; color: var(--fg-85); }
.about-list li::before { content: "-"; position: absolute; left: 0; font-family: var(--font-mono); color: var(--accent); }

/* Faux terminal/file window, used for code samples. */
.window { border: 1px solid var(--fg-15); border-radius: 6px; overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--fg-04); border-bottom: 1px solid var(--fg-10); }
.window__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-25); }
.window__name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-40); margin-left: 6px; }
.window__body { padding: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-35); }


/* --- drifters ------------------------------------------------------------- */
.drifters__head { padding: clamp(48px, 8vw, 80px) 0 clamp(28px, 4vw, 36px); }
.drifters__head .eyebrow { margin-bottom: 22px; }
.drifters__title { font-weight: 600; font-size: clamp(44px, 7vw, 84px); line-height: 1; margin: 0 0 22px; }
.drifters__tagline { font-weight: 300; font-style: italic; font-size: 19px; line-height: 1.6; color: var(--fg-65); max-width: 640px; margin: 0; }
.drifters__play { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-bottom: 56px; }

/* Image slots that stand in for screenshots/diagrams. */
.slot {
  aspect-ratio: 16 / 8;
  background: var(--slot-stripes);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slot-ink);
  margin-bottom: 28px;
}
.slot--tight { border-radius: 6px; margin-bottom: 0; }

.stub {
  font-family: var(--font-mono);
  font-size: 15px;
  border: 1px dashed var(--fg-30);
  color: var(--fg-45);
  padding: 13px 24px;
  border-radius: 4px;
  font-style: italic;
}

.module { padding: 32px 0; border-top: var(--rule); }
.module__h { font-weight: 600; font-size: 24px; margin: 0 0 14px; }
.module__p { font-weight: 300; font-size: 16px; line-height: 1.75; color: var(--fg-65); max-width: 640px; margin: 0; }
.module__p--accent { font-style: italic; color: var(--accent-70); }

.devlog .eyebrow { margin-bottom: 16px; }
.devlog__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; font-size: 15px; font-style: italic; color: var(--accent-70); }
.devlog__date { font-family: var(--font-mono); font-size: 12px; color: var(--fg-35); font-style: normal; }

.context { padding: 32px 0 56px; border-top: var(--rule); }
.context__heading { font-family: var(--font-mono); font-size: 14px; color: var(--fg-40); margin-bottom: 16px; }
.context__links { display: flex; flex-direction: column; gap: 10px; }
.context__links a { font-size: 15px; color: var(--fg-70); }
.context__links a:hover { color: var(--accent); }

/* --- article (collidergrid) ----------------------------------------------- */
.backlink-row { padding: 20px 0 0; }
.backlink { font-family: var(--font-mono); font-size: 13px; color: var(--fg-50); }
.backlink:hover { color: var(--fg); }

.article__head { padding: 36px 0 8px; }
.article__head .eyebrow { margin-bottom: 22px; }
.article__title { font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.18; max-width: 820px; margin: 0 0 20px; }
.article__dek { font-weight: 300; font-size: 18px; line-height: 1.6; color: var(--fg-60); max-width: 680px; margin: 0 0 22px; }
:root[data-theme='light'] .article__dek { color: var(--fg-65); }
.note-series {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-85);
  letter-spacing: 0.02em;
  margin: -8px 0 18px;
}
.note-series__name { color: var(--accent-85); }
:root[data-theme='light'] .note-series,
:root[data-theme='light'] .note-series__name { color: var(--accent); }
/* The parts as the nav sets its flags: the values in a row, a hairline
   between them, the current one in the accent and in weight. No boxes:
   the row of numbers after the series' name is the pager. The padding is
   the target, and the negative margin keeps the line's height. */
.note-series__parts { display: inline-flex; align-items: center; }
.note-series__parts a,
.note-series__parts [aria-current='page'] {
  position: relative;
  padding: 10px 8px;
  margin: -10px 0;
  line-height: 1.2;
  color: var(--fg-60);
  transition: color 0.15s ease;
}
:root[data-theme='light'] .note-series__parts a { color: var(--fg-70); }
.note-series__parts > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: var(--fg-30);
}
.note-series__parts a:hover,
:root[data-theme='light'] .note-series__parts a:hover { color: var(--fg); }
.note-series__parts [aria-current='page'],
:root[data-theme='light'] .note-series__parts [aria-current='page'] { color: var(--accent); font-weight: 600; }
/* Date, reading time and tags are one band, not three stacked rows: they
   answer the same question -- is this worth my next seven minutes. */
.article__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg-50); }
:root[data-theme='light'] .article__meta { color: var(--fg-65); }
.article__tags { display: inline-flex; flex-wrap: wrap; gap: 4px 0; }
.article__context { font-family: var(--font-mono); font-size: 12px; color: var(--fg-40); margin-top: 10px; }

/* --- note player ---------------------------------------------------------- */
/* $ play is a command, same family as $ cat / $ copy / $ next. Inverted fill
   while playing is the on-air light; the meter is the same 1px rule the rest
   of the page is drawn with, not a rounded scrubber. Sticky so the command
   stays on the article while the body scrolls — containing block is the
   <article>, so it lets go at the pager, not the footer. */
.note-play {
  position: sticky;
  top: 0;
  z-index: 4;
  max-width: 680px;
  margin: 18px 0 0;
  padding: 12px 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-45);
  border-bottom: var(--rule);
  /* Fallback until JS paints the same --bg-visual slice the page is
     showing at this scroll position. Solid --bg is the mid-cream token and
     reads as a cooler slab once the gradient has gone warmer down the page. */
  background-color: var(--bg);
  background-repeat: no-repeat;
}
/* The meter is the rule once JS is on — keeping both stacked two hairlines. */
.note-play.is-ready {
  border-bottom: none;
  padding-bottom: 4px;
}
.note-play__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.note-play__cmd {
  flex: 0 0 auto;
  color: var(--accent);
  border: 1px solid var(--accent-50);
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.note-play__cmd:hover { color: var(--fg); border-color: var(--fg-25); }
.note-play__cmd:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.note-play.is-playing .note-play__cmd {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.note-play.is-playing .note-play__cmd:hover { color: var(--bg); }
.note-play__file {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-40);
}
.note-play__time {
  margin-left: auto;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--fg-40);
}
.note-play__meter {
  display: none;
  position: relative;
  height: 24px;
  margin-top: 4px;
  cursor: pointer;
}
.note-play.is-ready .note-play__meter { display: block; }
.note-play__meter:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.note-play__meter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 1px;
  background: var(--fg-15);
}
.note-play__fill {
  position: absolute;
  left: 0;
  top: 11px;
  height: 1px;
  width: 0%;
  background: var(--accent);
  pointer-events: none;
}
.note-play__knob {
  position: absolute;
  top: 8px;
  left: 0%;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  background: var(--accent);
  border-radius: 1px;
  pointer-events: none;
}
.note-play audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 520px) {
  .note-play__file { display: none; }
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 44px 32px;
  margin: 44px 0;
  border: 1px solid var(--fg-12);
  border-radius: 8px;
  flex-wrap: wrap;
}
.metric__from { font-weight: 600; font-size: clamp(40px, 6vw, 64px); color: var(--fg-90); }
.metric__arrow { font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.metric__to { font-weight: 600; font-size: clamp(40px, 6vw, 64px); color: var(--accent); }
.metric__label { font-family: var(--font-mono); font-size: 13px; color: var(--fg-45); flex: 1 1 180px; min-width: 160px; }

.prose { max-width: 680px; padding-bottom: 20px; }
.sec { padding: 28px 0; border-top: var(--rule); }
.sec__h { font-weight: 600; font-size: 22px; margin: 0 0 14px; }
.sec__n { color: var(--accent); font-family: var(--font-mono); font-size: 14px; margin-right: 10px; }
.sec__p { font-weight: 300; font-style: italic; font-size: 16px; line-height: 1.75; color: var(--accent-70); margin: 0; }
.sec__p + .window, .sec__p + .slot { margin-top: 20px; }

.pullquote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 2px solid var(--accent);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-75);
}

.next-cta { padding: 36px 0 60px; border-top: var(--rule); }

.note-adj {
  display: block;
  max-width: 680px;
  margin: 8px 0 0;
  padding: 28px 0 0;
  border-top: var(--rule);
  color: inherit;
}
.note-adj + .note-adj { margin-top: 28px; }
.note-adj:last-child { margin-bottom: 64px; }
.note-adj:hover { color: inherit; }
.note-adj .eyebrow { margin-bottom: 14px; }
.note-adj__title {
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  margin: 0 0 10px;
  transition: color 0.18s ease;
}
.note-adj:hover .note-adj__title { color: var(--accent); }
.note-adj__dek {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-55);
  margin: 0 0 16px;
}
.note-adj__go {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* --- case study: two-voice (flagship) ------------------------------------- */
/* A plain-language "short version" that anyone can read, and a collapsed
   "under the hood" lane where the jargon lives -- so a non-technical client
   gets the story and an engineer still gets the depth, without either wading
   through the other. */

.cs-outcome {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 22px 28px;
  margin: 40px 0;
  border: 1px solid var(--fg-12);
  border-radius: 8px;
}
.cs-outcome__from { font-weight: 300; font-size: clamp(17px, 2.2vw, 22px); color: var(--fg-65); }
.cs-outcome__arrow { font-family: var(--font-mono); font-size: 20px; color: var(--accent); }
.cs-outcome__to { font-weight: 600; font-size: clamp(19px, 2.6vw, 26px); color: var(--accent); }

.voice { padding: 8px 0 4px; }
.voice__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-45);
  margin-bottom: 20px;
}
.voice__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Readable prose: upright and higher-contrast than the muted greys used for
   labels. Long reading copy must not sit at 55% opacity. */
.readable { max-width: 680px; }
.readable p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-85);
  margin: 0 0 20px;
}
.readable p:last-child { margin-bottom: 0; }

/* Under the hood: collapsed by default (native <details>, no JS) so the
   non-technical reader skips it and the engineer opens it. */
.underhood {
  margin: 40px 0 8px;
  border: 1px solid var(--fg-12);
  border-radius: 8px;
  background: var(--fg-04);
}
.underhood__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}
.underhood__summary::-webkit-details-marker { display: none; }
.underhood__summary::before {
  content: "+";
  width: 1ch;
  color: var(--accent);
  font-size: 16px;
}
.underhood[open] .underhood__summary::before { content: "\2212"; }
.underhood__summary:hover { color: var(--accent); }
.underhood__body { padding: 4px 22px 26px; max-width: 720px; }
.uh-context { font-size: 15px; line-height: 1.7; color: var(--fg-70); margin: 0; }
.uh-h {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 26px 0 12px;
}
.uh-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.uh-list li { font-size: 15px; line-height: 1.65; color: var(--fg-70); }
.uh-p { font-size: 15px; line-height: 1.7; color: var(--fg-70); margin: 0; }
.uh-term { font-family: var(--font-mono); font-size: 13.5px; color: var(--fg-90); }
.underhood__body .window { margin: 22px 0 6px; }
.window__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-75);
  white-space: pre;
  overflow-x: auto;
}
.uh-note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--fg-10);
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: var(--fg-55);
}

/* --- agent stack (home hero) ---------------------------------------------- */
/* Signature: a fanned stack of faux-terminal "agent" panes, each quiet and
   mono, converging on the one accent element -- the human's decision. Purely
   decorative (aria-hidden); the paragraphs carry the meaning. */
.agent-stack { position: relative; display: flex; flex-direction: column; }
.agent-card {
  width: 84%;
  border: 1px solid var(--fg-15);
  border-radius: 8px;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.28s ease;
}
.agent-card { transform: translateX(var(--agent-x)); }
.agent-card--1 { --agent-x: 0%; z-index: 1; }
.agent-card--2 { --agent-x: 8%; margin-top: -9px; z-index: 2; }
.agent-card--3 { --agent-x: 16%; margin-top: -9px; z-index: 3; }
/* The fan opens under a pointer on the three panes only. Iskra's card and
   the foot sit in the same stack, and a pointer on those moves nothing. */
.agent-stack:has(.agent-card:not(.agent-card--dock):hover) .agent-card--1 { transform: translateX(calc(var(--agent-x) - 2%)) translateY(-3px); }
.agent-stack:has(.agent-card:not(.agent-card--dock):hover) .agent-card--3 { transform: translateX(calc(var(--agent-x) + 2%)) translateY(3px); }

/* A pass of the loop. The three panes kick in sequence rather than together --
   explore, then write, then review -- because that is the order they actually
   run in, and a simultaneous flash would read as a glitch rather than a
   sequence. theme.js swaps each body at the bottom of its own dip. */
.agent-card.is-rerun { animation: agent-rerun 460ms cubic-bezier(0.32, 0, 0.24, 1); }
.agent-card.is-rerun .agent-card__body { animation: agent-body 460ms ease; }
@keyframes agent-rerun {
  0%   { transform: translateX(var(--agent-x)); }
  30%  { transform: translateX(calc(var(--agent-x) - 3%)) translateY(-5px); }
  100% { transform: translateX(var(--agent-x)); }
}
@keyframes agent-body {
  0%, 100% { opacity: 1; }
  28%, 42% { opacity: 0; }
}
.agent-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fg-10);
}
.agent-card__dots { display: flex; gap: 5px; }
.agent-card__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-25); }
.agent-card__name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-55); }
.agent-card__body {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-60);
  padding: 12px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-card__mark { color: var(--accent); }
/* No blinking cursor on the first screen: the write pane's stands still,
   a mark that the patch is open, not an invitation. */
.agent-card__body .cursor { animation: none; opacity: 0.55; }
/* The cards sit on a tint of --fg, so the light theme needs more ink than
   the dark one for the same 4.5:1: name 5.5:1, body 6.5:1 (dark: 5.1, 5.8). */
:root[data-theme='light'] .agent-card__name { color: var(--fg-70); }
:root[data-theme='light'] .agent-card__body { color: var(--fg-75); }
.agent-stack__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
  padding-right: 2%;
}
.agent-chip {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--accent);
  border: 1px solid var(--accent-50);
  border-radius: 999px;
  padding: 5px 13px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.agent-chip:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
}
.agent-chip:active { transform: translateY(1px); }
.agent-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.agent-loop { font-family: var(--font-mono); font-size: 11px; color: var(--fg-40); transition: color 0.2s ease; }
/* Converged: the gate has nothing left to reject, so the counter -- not the
   button -- is what turns amber. The button keeps its job; pressing it again
   starts the run over. */
.agent-stack.is-done .agent-loop { color: var(--accent); }

/* --- note body (markdown) ------------------------------------------------- */
.notes-empty {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-45);
  padding: 8px 0 40px;
}
.notes-empty__cmd { color: var(--fg-35); margin-bottom: 10px; }
.notes-empty p { margin: 0; line-height: 1.6; }

/* One measure for the whole article -- 680px, what the rest of the site
   already uses for prose (.prose, .readable), and about 68 characters a line
   at 18px. Everything shares it: title, still, paragraphs, code, pager.
   Two widths were tried and thrown out. On a centred layout a wide code block
   breaks out symmetrically and reads as a device; this grid is anchored to the
   left gutter, so a wider block can only step out to the right -- which reads
   as a block that failed to line up, not as a decision. Alignment down one
   edge is worth more here than the extra room code would get. */
.article--note .article__title,
.article--note .article__dek,
.note-body { max-width: 680px; }
.note-body { padding: 24px 0 64px; }
.note-body > *:first-child { margin-top: 0; }
.note-body p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-85);
  margin: 0 0 20px;
}
.note-body p:last-child { margin-bottom: 0; }
/* Prose is 300 at 85%; the browser's `bolder` would only lift <strong> to 400
   in the same muted colour, invisible to a skimming eye. */
.note-body strong { font-weight: 500; color: var(--fg); }
/* A section break has to out-weigh a paragraph break, or the article reads as
   one undifferentiated column. 52px above, 16px below. */
.note-body h2 {
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 52px 0 16px;
}
.note-body h3 {
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.35;
  margin: 36px 0 12px;
}
.note-body h2 + h3 { margin-top: 20px; }

/* Privacy policy: post typography, the post's title size, a quiet date. */
.privacy { padding-top: clamp(40px, 6vw, 72px); }
.privacy h1 { font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.18; margin: 0 0 16px; }
.privacy .lede { max-width: none; margin-bottom: 8px; }
.note-body.privacy .privacy__date { margin-top: 48px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-60); }
.note-body ul,
.note-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-body li {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-85);
}
.note-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--fg-75);
}
.note-body blockquote p:last-child { margin-bottom: 0; }
.note-body hr {
  border: 0;
  border-top: 1px solid var(--fg-12);
  margin: 36px 0;
}
.note-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* In a price table the accent colour alone marks a link; underlines on
   every other cell read as dirt. They come back on hover. */
.note-body table a { text-decoration: none; }
.note-body table a:hover,
.note-body table a:focus-visible { text-decoration: underline; }
.note-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.note-body pre {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--fg-12);
  border-radius: 8px;
  background: var(--fg-04);
  overflow-x: auto;
  /* The default scrollbar renders light grey and shouts on a near-black
     page. Thin and drawn from the theme's own ramp instead. */
  scrollbar-width: thin;
  scrollbar-color: var(--fg-25) transparent;
}
.note-body pre::-webkit-scrollbar { height: 8px; }
.note-body pre::-webkit-scrollbar-button { display: none; }
.note-body pre::-webkit-scrollbar-track { background: transparent; }
.note-body pre::-webkit-scrollbar-thumb {
  background: var(--fg-20);
  border-radius: 4px;
}
.note-body pre::-webkit-scrollbar-thumb:hover { background: var(--fg-35); }
.note-pre { position: relative; margin: 24px 0; }
.note-body .note-pre > pre {
  margin: 0;
  padding-right: 5.75rem;
}
.note-pre__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--accent-50);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.note-pre__copy:hover { color: var(--fg); border-color: var(--fg-25); }
.note-pre__copy:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.note-pre.is-copied .note-pre__copy { color: var(--fg); border-color: var(--accent); }
/* On a phone a line of code reaches the button and runs under it. There
   the button gets the box's top row to itself and the code the full width. */
@media (max-width: 720px) {
  .note-body .note-pre > pre { padding-top: 42px; padding-right: 18px; }
}
.note-body pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-75);
  background: none;
  padding: 0;
}
.note-body :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  /* Narrow at the sides: a wider chip reads as a space before the full
     stop that follows it. */
  padding: 0.1em 0.2em;
  border-radius: 3px;
}
/* catalog.py wraps every table so a wide one scrolls inside its own box
   instead of widening the page -- on a phone the layout viewport grew to
   the table's width and the bottom nav stretched with it. */
.note-table { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.note-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
}
.note-body th,
.note-body td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fg-10);
}
.note-body th { font-family: var(--font-mono); font-size: 12px; color: var(--fg-45); font-weight: 500; }

/* --- featured image (first LLM article only, preview) --------------------- */
.note-art__img { width: 100%; }
.note-art__img img,
img.note-art__img {
  width: 100%;
  height: auto;
}
img.note-art__img--dark,
picture.note-art__img--dark { display: block; }
img.note-art__img--light,
picture.note-art__img--light { display: none; }
:root[data-theme='light'] img.note-art__img--dark,
:root[data-theme='light'] picture.note-art__img--dark { display: none; }
:root[data-theme='light'] img.note-art__img--light,
:root[data-theme='light'] picture.note-art__img--light { display: block; }

.note-hero {
  max-width: 680px;
  margin: 28px 0 0;
}
/* The covers' corners, no frame. */
.note-hero img { border-radius: 10px; }

.cs-item__thumb { grid-column: 3; }
.cs-item__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* Scales and net sit on the right of the still; keep them in frame. */
  object-position: 82% center;
  /* The home cards' cover: its corners, no frame. */
  border-radius: 10px;
  background: var(--fg-04);
}

.cs-card__art { margin: 0 0 4px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
/* A post without a cover yet keeps the slot, faintly tinted, so the row's
   dates and titles still line up. */
.cs-card__art--none { background: color-mix(in srgb, var(--fg) 4%, transparent); }
/* 16:9: the pack's desktop still, so nothing is cropped on a desktop. On a
   phone the same still is cut to 2:1, a band rather than a screen, so
   three posts are three cards on the way down and not three screens. */
/* No `display` here: the theme rules above show one still and hide the other. */
.cs-card__art img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
@media (max-width: 760px) {
  .cs-card__art { aspect-ratio: 2 / 1; }
  .cs-card__art img { aspect-ratio: 2 / 1; }
}

/* Phone: one column. The still leads, then the rail collapses to a single
   `date · minutes` line, then the text. */
@media (max-width: 760px) {
  .cs-item,
  .cs-item--has-art { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cs-item__rail,
  .cs-item__body,
  .cs-item__thumb { grid-column: 1; }
  /* The home cards' cover: the 16:9 still cut to a 2:1 band and centred,
     so a post is a card on the way down and not a screen. */
  .cs-item__thumb { order: -1; margin-bottom: 18px; }
  .cs-item__thumb img { aspect-ratio: 2 / 1; object-position: center; }
  .cs-item__rail { display: flex; align-items: baseline; gap: 10px; padding: 0 0 10px; }
  .cs-item__mins { margin-top: 0; }
  .cs-item__mins::before { content: "· "; color: var(--fg-25); }
  /* The gutter is 20px here: the rail sits halfway into it. */
  .cs-series__body::before { left: -10px; }
  .cs-list .cs-series__head,
  .cs-list .cs-shelf__head,
  .cs-intro > .eyebrow,
  .cs-intro__heading,
  .cs-feed { margin-left: -10px; }
  /* A part on a phone: `date · part` on one line, as the full row's
     `date · minutes`, and the title under it. */
  .cs-part { grid-template-columns: auto minmax(0, 1fr); gap: 2px 0; }
  .cs-part__body { display: contents; }
  .cs-part__n::before { content: "· "; margin-left: 10px; color: var(--fg-25); }
  .cs-part__title { grid-column: 1 / -1; }
  /* A tip: `date · tags`, the title under them. */
  .cs-part--tip .cs-part__title { grid-row: 2; }
  .cs-part--tip .cs-part__tags { grid-row: 1; grid-column: 2; white-space: normal; }
  .cs-part--tip .cs-part__tags::before { content: "· "; margin-left: 10px; color: var(--fg-25); }
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  /* On a phone the three panes and the pill would be two screens before
     the button; the claim stands on its own and Iskra's card stays. */
  .agent-stack .agent-card--1, .agent-stack .agent-card--2, .agent-stack .agent-card--3, .agent-stack__foot { display: none; }
  .agent-card--dock { margin-top: 0; }
  .agent-stack { max-width: 400px; }
}

/* In-body anchors (e.g. the numbered decision classes a table links back to):
   leave room for the sticky player so the target is not hidden under it. */
.note-body a[id]:empty {
  scroll-margin-top: 5rem;
}

/* --- landers (search landing pages) ---------------------------------------- */
.lander { padding: clamp(48px, 8vw, 80px) 0 clamp(20px, 3vw, 32px); }
.lander .eyebrow { margin-bottom: 22px; }
/* One column, the same 680px a blog post uses for its title, dek, hero and
   body, so the strip and the still line up with the text instead of each
   element picking its own width. */
.lander__heading { font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.18; letter-spacing: -0.01em; max-width: 680px; margin: 0; }
.lander__lede { font-weight: 300; font-size: 18px; line-height: 1.65; color: var(--fg-70); max-width: 680px; margin: 22px 0 0; }
/* The strip: the one number or promise the ad made, kept above the fold
   next to the button, so a visitor who came for the wrong thing leaves on
   the first screen instead of in the form. */
/* No box: a rule at the left like a quoted line in the body, so the strip
   reads as part of the text column and leaves room for the still below. */
.strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  max-width: 680px; margin-top: 28px; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
}
.strip__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 100%; }
/* Under the text, one row: the button at the left edge, the quiet link at the right. */
.strip__actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex: 1 1 100%; }
.strip__actions .btn { align-self: center; } /* .btn defaults to flex-start */
.strip__alt { font-family: var(--font-mono); font-size: 12px; color: var(--fg-50); }
.strip__alt:hover { color: var(--fg); }
.strip__label { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.strip__value { font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.strip__note { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--fg-55); }
.lander__body { padding-top: 8px; padding-bottom: 24px; }
.faq { max-width: 680px; padding: 8px 0 40px; }
.faq__heading { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 18px; }
.faq__item { border-top: var(--rule); }
.faq__item:last-child { border-bottom: var(--rule); }
.faq__q { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 17px; line-height: 1.5; display: flex; justify-content: space-between; gap: 16px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-mono); color: var(--accent); flex: none; }
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 0 20px; }
.faq__a p { font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--fg-75); margin: 0 0 12px; }
@media (max-width: 760px) {
  .strip { padding: 2px 0 2px 16px; gap: 14px; }
  /* Label and value on one line ("wycena: w jeden dzień roboczy"), the note under them. */
  .strip__text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .strip__label::after { content: ":"; }
  .strip__value { font-size: 20px; }
  .strip__note { flex: 1 1 100%; }
  .strip__actions { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .strip__actions .btn { width: 100%; align-self: stretch; text-align: center; }
}

/* --- lander widgets: calculator and the human gate ------------------------ */
.calc, .gate { padding: 8px 0 40px; }
.calc__bar { display: none; }
.lander__hero { margin-top: 24px; }
.calc__head .eyebrow, .gate__head .eyebrow { margin-bottom: 14px; }
.calc__heading, .gate__heading { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 8px; }
.calc__lede, .gate__lede { font-weight: 300; font-size: 17px; line-height: 1.65; color: var(--fg-60); max-width: 620px; margin: 0 0 26px; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
.calc__group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.calc__legend { font-family: var(--font-mono); font-size: 12px; color: var(--fg-40); margin-bottom: 10px; padding: 0; }
/* The unpriced group is a question with chips, not rows with a price column. */
.calc__group--chips { padding-top: 6px; }
.calc__legend--question { font-family: inherit; font-size: 15px; font-weight: 500; color: var(--fg); margin-bottom: 4px; }
.calc__hint { font-size: 13px; line-height: 1.5; color: var(--fg-55); margin: 0 0 12px; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--fg-20); border-radius: 999px; font-size: 14px; line-height: 1.3; color: var(--fg-70); cursor: pointer; user-select: none; }
.calc__chip::before { content: "+"; font-family: var(--font-mono); color: var(--fg-40); }
.calc__chip:hover { border-color: var(--fg-50); color: var(--fg); }
.calc__chip:has(input:checked) { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.calc__chip:has(input:checked)::before { content: "✓"; color: var(--accent); }
.calc__chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__bar-extras { font-family: var(--font-mono); font-size: 12px; color: var(--fg-55); margin-left: 6px; }
.calc__opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--fg-10); cursor: pointer; }
.calc__group .calc__opt:last-of-type { border-bottom: 1px solid var(--fg-10); }
.calc__opt input[type="radio"], .calc__opt input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; cursor: pointer; } /* inputs do not inherit the row's pointer */
/* Counted add-on: price and stepper stacked at the right, so the left
   column stays a column of checkboxes. */
.calc__opt--count .calc__opt-text { cursor: pointer; }
.calc__opt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.calc__stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--fg-20); border-radius: 4px; overflow: hidden; }
.calc__stepper button { width: 30px; font-family: var(--font-mono); font-size: 15px; line-height: 1; color: var(--fg-70); background: var(--fg-04); border: 0; cursor: pointer; }
.calc__stepper button:hover { color: var(--fg); background: var(--fg-10); }
.calc__num { width: 34px; font-family: var(--font-mono); font-size: 14px; color: var(--fg); background: transparent; border: 0; border-left: 1px solid var(--fg-20); border-right: 1px solid var(--fg-20); padding: 5px 0; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.calc__num::-webkit-outer-spin-button, .calc__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__opt-text { font-size: 15px; line-height: 1.45; }
/* Title first, detail under it in a smaller, quieter line, so the eye
   catches the three names before the lists behind them. */
.calc__opt-title { display: block; font-weight: 500; }
.calc__opt-detail { display: block; font-size: 13px; line-height: 1.45; color: var(--fg-55); margin-top: 2px; }
/* "see examples" under an option: a link inside a <label>, so it stops the
   click from toggling the radio and goes to /demo/ instead. */
.calc__opt-examples { display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 6px; text-decoration: none; border-bottom: 1px solid transparent; }
.calc__opt-examples:hover { border-bottom-color: var(--accent); }
.calc__opt-price { font-family: var(--font-mono); font-size: 13px; color: var(--fg-55); white-space: nowrap; }
.calc__opt-price--note { color: var(--fg-40); }
/* Same treatment as the strip: a rule at the left instead of a box. */
.calc__result { position: sticky; top: 84px; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.calc__label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.calc__total { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.calc__from, .calc__cur { font-weight: 400; font-size: 0.5em; color: var(--fg-55); }
.calc.is-unpriced .calc__from, .calc.is-unpriced .calc__cur { display: none; }
.calc.is-unpriced .calc__total { font-size: clamp(20px, 2.4vw, 26px); }
.calc__extras { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--fg-55); margin-top: 10px; }
.calc__monthly { font-size: 14px; color: var(--fg-60); margin-top: 10px; }
.calc__monthly[hidden] { display: none; }
.calc__note { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--fg-45); margin: 14px 0 18px; }
.gate__scene { max-width: 640px; }
.gate__card { width: 100%; --agent-x: 0%; transform: none; }
.gate__body { white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; line-height: 1.6; color: var(--fg-75); padding: 14px 16px; min-height: 64px; }
.gate__you { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.gate__you-name { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.gate__chips { display: flex; gap: 10px; }
.gate__chip--back { color: var(--fg-60); border-color: var(--fg-25); background: transparent; }
.gate__chip--back:hover { color: var(--fg); border-color: var(--fg-50); background: var(--fg-04); }
.gate__chip:disabled { opacity: 0.45; cursor: default; }
.gate__log { list-style: none; margin: 18px 0 0; padding: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.gate__entry { padding: 8px 0; border-top: 1px solid var(--fg-10); color: var(--fg-60); }
.gate__entry--ok::before { content: "\2713 "; color: var(--accent); }
.gate__entry--back::before { content: "\21A9 "; color: var(--fg-45); }
.gate__count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-40); margin-top: 10px; }
.gate.is-done .gate__body { color: var(--accent); }
@media (max-width: 760px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  /* The phone bar above the bottom nav (it rides on --bar-offset, so it
     follows the nav down when that hides on a scroll). */
  .calc__bar {
    position: fixed; left: 0; right: 0; bottom: var(--bar-offset); z-index: 29;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 20px; border-top: 1px solid var(--fg-10);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: bottom .2s ease;
  }
  .calc__bar[hidden] { display: none; }
  :root[data-calc-bar] { --calc-bar-h: 58px; } /* fallback; lander.js sets the measured height inline */
  /* Amount on one line, the unpriced count under it, the button never squeezed. */
  .calc__bar-total { display: block; min-width: 0; font-weight: 600; font-size: 18px; line-height: 1.2; white-space: nowrap; }
  .calc__bar-total .calc__bar-extras { display: block; margin: 2px 0 0; white-space: normal; }
  .calc__bar-total .calc__from, .calc__bar-total .calc__cur { font-weight: 400; font-size: 14px; color: var(--fg-70); }
  .calc__bar-btn { font-size: 14px; padding: 9px 14px; white-space: nowrap; flex: none; }
  .gate__you { flex-direction: column; align-items: flex-start; }
}

/* The calculator's hand-over on the contact form: visible, not editable. */
/* Same treatment as the lander strip and the calculator result: a rule at the left, no box. */
.form__calc { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.form__calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.form__calc-label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.form__calc-back { font-family: var(--font-mono); font-size: 12px; color: var(--fg-50); white-space: nowrap; }
.form__calc-back:hover { color: var(--fg); }
.form__calc-rows { list-style: none; margin: 0; padding: 0; }
.form__calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; font-size: 15px; line-height: 1.4; }
.form__calc-row + .form__calc-row { border-top: 1px solid var(--fg-10); }
.form__calc-title small { display: block; font-size: 12px; line-height: 1.4; color: var(--fg-50); }
.form__calc-price { font-family: var(--font-mono); font-size: 13px; color: var(--fg-70); white-space: nowrap; }
.form__calc-rows--after { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--fg-20); color: var(--fg-70); }
.form__calc-total { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--fg-20); font-family: var(--font-mono); font-size: 13px; color: var(--fg); }
.form__calc-note { font-family: var(--font-mono); font-size: 11px; color: var(--fg-40); margin-top: 10px; }

/* /demo/: the three example sites as cards, one per look. Each card is a
   screenshot of the demo's first screen on a desktop with the phone view
   laid over its corner, so a visitor sees the look before clicking. The
   page is wider than a prose column, the intro keeps the prose measure. */
.prose--demos { padding-top: clamp(48px, 7vw, 80px); max-width: 1040px; }
.prose--demos .eyebrow { margin-bottom: 22px; }
.prose--demos .lede { max-width: 560px; }
.demos__cta a { color: var(--accent); }
.demos__cta a:hover { color: var(--fg); }
/* A heading per tier: name, price in the accent, the calculator's line in mono. */
.demos__tier { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--fg-25); font-size: 20px; font-weight: 500; }
.demos__tier-price { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.demos__tier-detail { flex-basis: 100%; font-family: var(--font-mono); font-size: 13px; color: var(--fg-60); font-weight: 400; }
.demos { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.demos__link { display: block; text-decoration: none; color: inherit; }
.demos__link:hover .demos__name { color: var(--accent); }
.demos__shot { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: calc(12% + 16px); transition: transform .2s; }
.demos__link:hover .demos__shot { transform: translateY(-3px); }
.demos__shot picture { display: block; }
.demos__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--fg-20); background: var(--fg-04); }
.demos__shot-desk { height: 100%; }
/* The phone: a fifth of the card's width in its corner, its foot below the card's edge. */
.demos__shot-phone { position: absolute; right: 3%; bottom: -12%; width: 22%; aspect-ratio: 600 / 1298; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.demos__shot-phone img { border-radius: 10px; border-color: var(--fg-30); }
.demos__shot--empty { display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--fg-20); background: var(--fg-04); font-family: var(--font-mono); color: var(--fg-60); }
.demos__name { display: block; font-size: 20px; font-weight: 500; }
.demos__trade { display: block; color: var(--fg-60); margin-top: 2px; }
.demos__look { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--fg-60); margin-top: 8px; }
.demos__price { display: block; font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-top: 4px; white-space: nowrap; }
@media (max-width: 880px) {
  .demos { grid-template-columns: 1fr; gap: 44px; }
  .demos__shot-phone { width: 22%; }
}

/* ---------------------------------------------------------------------------
   Iskra, the offer bot (partials/_consultant.html, js/consultant.js). A
   light, not a box. The spark is her body, a canvas the script draws; this
   file gives it a colour and a place. The chip in the corner is the spark
   alone, the being as the button; the window is glass in the page's own
   colour: dark glass on the dark pages, cream glass on the light ones
   (a dark window on cream was a hole in the page), where she is an ember
   on paper, drawn in burnt orange rather than amber and white. A current
   runs along the edge and the glass blooms where the spark sits. Inside,
   the visitor's lines sit on the right in a tinted pill, hers run as
   plain text on the left: who said what is clear before a word is read.
   Bottom-left corner, the same bottom formula as `.totop`, so the phone
   CTA bar and the calculator bar push both corners up together.
--------------------------------------------------------------------------- */
:root {
  /* The spark's own colour. In the dark it is the accent; in the light
     the accent is a brown chosen for text contrast, and a spark drawn in
     it is a brown dot, so there it gets a brighter amber of its own (the
     home card's spark sits in the page's chrome and needs this). The
     bloom's strength is read by the script per frame. */
  --spark: var(--accent);
  --spark-bloom: 0.5;
  --iskra-glass: color-mix(in srgb, var(--bg) 78%, transparent);
  --iskra-edge: color-mix(in srgb, var(--spark) 28%, transparent);
  --iskra-glow: color-mix(in srgb, var(--spark) 22%, transparent);
  --iskra-glow-soft: color-mix(in srgb, var(--spark) 9%, transparent);
}
:root[data-theme='light'] {
  /* --spark-paper tells the script's shader the page is paper: the smoke
     goes sepia, the heat burnt orange, the hot core gold (white is nothing
     on cream), and the faint haze is dropped, so she is ink, not dirt. */
  --spark: #D9771A;
  --spark-bloom: 0.5;
  --spark-paper: 1;
  --iskra-glow: color-mix(in srgb, var(--spark) 18%, transparent);
  --iskra-glow-soft: color-mix(in srgb, var(--spark) 8%, transparent);
}
/* Inside the widget the palette is the page's, set here so the tints
   below mix from the widget's own --fg (the site mixes its tints at the
   root, from the root's --fg). Dark by default, cream on the light theme. */
.consultant {
  --bg: #130f0b;
  --fg: #f1ece3;
  --accent: #E8AD5E;
  --accent-50: color-mix(in srgb, var(--accent) 50%, transparent);
  --accent-70: color-mix(in srgb, var(--accent) 70%, transparent);
  --fg-04: color-mix(in srgb, var(--fg) 4%, transparent);
  --fg-08: color-mix(in srgb, var(--fg) 8%, transparent);
  --fg-10: color-mix(in srgb, var(--fg) 10%, transparent);
  --fg-12: color-mix(in srgb, var(--fg) 12%, transparent);
  --fg-15: color-mix(in srgb, var(--fg) 15%, transparent);
  --fg-20: color-mix(in srgb, var(--fg) 20%, transparent);
  --fg-25: color-mix(in srgb, var(--fg) 25%, transparent);
  --fg-35: color-mix(in srgb, var(--fg) 35%, transparent);
  --fg-45: color-mix(in srgb, var(--fg) 45%, transparent);
  --fg-55: color-mix(in srgb, var(--fg) 55%, transparent);
  --fg-60: color-mix(in srgb, var(--fg) 60%, transparent);
  --fg-75: color-mix(in srgb, var(--fg) 75%, transparent);
  --fg-85: color-mix(in srgb, var(--fg) 85%, transparent);
  --spark: var(--accent);
  --spark-bloom: 0.55;
  --iskra-glass: color-mix(in srgb, var(--bg) 84%, transparent);
  --iskra-edge: color-mix(in srgb, var(--spark) 30%, transparent);
  --iskra-glow: color-mix(in srgb, var(--spark) 24%, transparent);
  --iskra-glow-soft: color-mix(in srgb, var(--spark) 10%, transparent);
  --iskra-pill: color-mix(in srgb, var(--spark) 13%, transparent);
  --iskra-pill-edge: color-mix(in srgb, var(--spark) 26%, transparent);
  --iskra-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.85), 0 0 70px -20px var(--iskra-glow);
  color: var(--fg);
}
:root[data-theme='light'] .consultant {
  --bg: #fbf8f1;
  --fg: #211d18;
  --accent: #9C6A2E;
  --spark: #D9771A;
  --spark-bloom: 0.5;
  --iskra-glass: color-mix(in srgb, var(--bg) 86%, transparent);
  --iskra-edge: color-mix(in srgb, var(--spark) 40%, transparent);
  --iskra-glow: color-mix(in srgb, var(--spark) 22%, transparent);
  --iskra-glow-soft: color-mix(in srgb, var(--spark) 9%, transparent);
  --iskra-pill: color-mix(in srgb, var(--spark) 11%, transparent);
  --iskra-pill-edge: color-mix(in srgb, var(--spark) 30%, transparent);
  --iskra-shadow: 0 24px 60px -24px rgba(60, 40, 20, 0.35), 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent), 0 0 60px -20px var(--iskra-glow);
}
@property --iskra-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* --iskra-lift and --iskra-visible come from consultant.js while the window
   is open on a phone with the keyboard up: how much of the layout viewport
   the keyboard covers, and how tall the visible part is. The bars at the
   bottom are under the keyboard then, so the lift replaces their offset
   rather than stacking on it. */
.consultant {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 32px) + max(var(--bar-offset) + var(--calc-bar-h), var(--iskra-lift, 0px)));
  z-index: 6;
  max-width: calc(100vw - 2 * clamp(16px, 3vw, 32px));
  /* The box itself takes no taps: on a phone it spans the width, over the
     back-to-top arrow in the other corner. Only the chip and the window do. */
  pointer-events: none;
}
.consultant__chip, .consultant__window { pointer-events: auto; }
/* The bar's coming and going moves the corner: eased, as the arrow's is.
   Not while the window is open, when the keyboard sets the bottom and
   must be followed at once. */
.consultant:not(.is-open) { transition: bottom 0.25s ease; }

/* The spark: a square the canvas fills; the colour it draws with. */
.spark {
  display: inline-block;
  flex: none;
  color: var(--spark);
  line-height: 0;
}
.spark canvas { display: block; }
.spark.is-off { color: var(--fg-35); }
/* Her body in the window's head: the canvas is much bigger than the place
   it takes, so the cloud spills over the glass and never ends in a square. */
/* Her seat in the head: the place she holds, and comes back to. */
.consultant__seat { flex: none; width: 52px; height: 52px; margin: -12px -2px -12px -10px; }
/* She herself: a button at the window's origin that the script moves to
   her seat, down to the answer she is writing, and back (translate and
   scale, eased). A poke at her (the 52px she sits in, not the spill)
   plays the same swell as typing. Decorative: out of the tab order,
   unannounced. */
.consultant__poke {
  appearance: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .consultant__poke { transition: transform 0.6s cubic-bezier(0.3, 0, 0.2, 1); }
  .consultant__poke.is-pinned { transition: none; }
}
/* flow-root: the canvas's negative margin must move the canvas, not
   collapse through this box and drop her below her seat. */
.spark--head { display: flow-root; width: 52px; height: 52px; pointer-events: none; }
.spark--head canvas { margin: -38px; }
/* The tip of the answer being written: a mark with no width that says
   where the text ends; she is placed there. */
.consultant__mark { display: inline-block; width: 0; height: 1em; vertical-align: text-bottom; }

/* The name and the role, used on the chip and in the window's head. In
   the head the role line is her mood while she has one. */
.consultant__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.consultant__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.consultant__role {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--fg-55);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.consultant.is-listening .consultant__role, .consultant.is-thinking .consultant__role { color: var(--accent); }
/* The status is empty while the spark is alive; the spark says it. Once
   the day's budget is spent the script fills it in, after a separator. */
.consultant__status:empty { display: none; }
.consultant__status::before { content: " · "; color: var(--fg-25); }
.consultant__status { color: var(--fg-45); }

/* The chip: the spark alone, the being itself as the button. No glass,
   no name; the name and the role stay in the markup, for screen readers
   only (`.sr-only`). */
.consultant__chip {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  touch-action: none;
  /* A finger that holds her must not select her hidden name or call up a
     menu: either one ends the touch, and the carry with it. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.5s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.2s ease;
}
/* Carried: no easing, she is under the finger; let go, the transition
   above (or the poke's) eases her back. */
.consultant__chip.is-carried, .consultant__poke.is-carried { transition: none; cursor: grabbing; }
html.iskra-carried, html.iskra-carried * { cursor: grabbing !important; }
html.iskra-carried { user-select: none; -webkit-user-select: none; }
/* The piece of the page she is held over: under her wing. The text warms
   a shade, and a wing (consultant.js lays it over the block) carries her
   light on it: one small spot, right where she is, as if she were
   reading those lines, whole even at the block's edge (the wing is not
   clipped; the spot is small enough not to reach the neighbours).
   Screened over the dark page, multiplied over the light one, so the
   words stay readable under it. On the drop it pulses once and goes
   out. */
/* Which piece she will take: a thin mark grows down its left margin,
   from its first line to its last, the way a reader marks a passage, and
   her light falls on the letters themselves: the text is filled with a
   gradient clipped to the glyphs, hot where she is (--lx/--ly, set by
   consultant.js per block as she moves) and the block's own colour a
   hand's width away, so only the words under her light up, as under a
   lamp. Links keep their own colour. Blocks with a background of their
   own (code) only warm, since the clip would take their background. */
@property --lx { syntax: '<length>'; inherits: false; initial-value: -999px; }
@property --ly { syntax: '<length>'; inherits: false; initial-value: -999px; }
.iskra-drop {
  --lx: -999px;
  --ly: -999px;
  /* --lit-base is the block's own colour, read by the script before the
     light goes on, so nothing changes but the lit letters. */
  --lit-base: var(--fg-75);
  --lit-hot: #fff8e8;
  --lit-warm: #f3cf8a;
  /* !important: the page's own rules for paragraphs are more specific
     than one class, and the text must be transparent for the clipped
     gradient to show. */
  color: transparent !important;
  background-image: radial-gradient(circle 150px at var(--lx) var(--ly), var(--lit-hot) 0, var(--lit-warm) 30%, var(--lit-base) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: --lx 0.08s linear, --ly 0.08s linear;
}
:root[data-theme='light'] .iskra-drop { --lit-hot: #b8650a; --lit-warm: #7a4a14; }
.iskra-drop a { color: var(--accent) !important; }
/* The list marker is not glyph text the clip can fill: it keeps the
   block's own colour instead of going transparent with it. */
.iskra-drop::marker { color: var(--lit-base); }
/* The tree's lines carry their own colours; under her light they take the
   row's clipped gradient like any other text. */
.tree__dir.iskra-drop .tree__name, .tree__dir.iskra-drop .tree__files { color: inherit; }
.iskra-drop.iskra-drop--plain { color: color-mix(in srgb, var(--fg) 72%, var(--spark)) !important; background-image: none; -webkit-background-clip: border-box; background-clip: border-box; }
.iskra-wing {
  --ix: 0px;
  --iy: 0px;
  --wing: var(--spark);
  position: fixed;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}
:root[data-theme='light'] .iskra-wing { --wing: #b8742a; mix-blend-mode: multiply; }
.iskra-wing::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(
    circle 96px at calc(var(--ix) + 120px) calc(var(--iy) + 120px),
    color-mix(in srgb, var(--wing) 30%, transparent),
    color-mix(in srgb, var(--wing) 8%, transparent) 45%,
    transparent 100%
  );
  filter: blur(6px);
}
.iskra-wing::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--wing) 75%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.3, 0, 0.2, 1);
}
.iskra-wing.is-on::after, .iskra-wing.is-landed::after { transform: scaleY(1); }
.iskra-wing--nomark::after { display: none; }
.iskra-wing.is-on { opacity: 1; }
.iskra-wing.is-landed { animation: iskra-land 0.9s ease-out forwards; }
@keyframes iskra-land {
  0% { opacity: 1; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.025); }
  100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .iskra-wing.is-landed { animation: none; opacity: 0; }
}
.spark--chip { width: 64px; height: 64px; }
.spark--chip canvas { margin: -16px; }
/* The chip steps aside while the reader types into the page's own fields.
   On a scroll down it rides down with the bottom bar (the --bar-offset in
   .consultant's bottom), as the back-to-top arrow does, and stays: she
   is the one way to ask, and a reader deep in a page is the one asking. */
/* On the home page her card in the hero is the launcher: while that card
   is on screen the corner chip would be a second Iskra, so it steps down
   the same way, and comes back once the reader has scrolled past the card:
   she came down the page with them. */
.consultant.is-yielding .consultant__chip,
.consultant.is-docked .consultant__chip {
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}
.consultant__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.consultant.is-open .consultant__chip { visibility: hidden; }

/* The window: dark glass, a current on the edge, a bloom at the spark. */
.consultant__window {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 440px;
  max-width: calc(100vw - 2 * clamp(16px, 3vw, 32px));
  max-height: min(74vh, 680px, calc(var(--iskra-visible, 100vh) - 2 * clamp(16px, 3vw, 32px)));
  border-radius: 22px;
  background: var(--iskra-glass);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: var(--iskra-shadow);
  /* Nothing is clipped here: the transcript scrolls on its own, the
     corners come from the radius, and the spark in the head must be free
     to spill over the edge onto the page. */
  overflow: visible;
  isolation: isolate;
  transform-origin: top left;
}
.consultant__window[hidden], .consultant__starters[hidden], .consultant__clear[hidden] { display: none; }
/* The edge: a hairline, and a brighter current running along it. */
.consultant__window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(from var(--iskra-a), transparent 0deg, transparent 200deg, var(--spark) 280deg, transparent 330deg),
    var(--fg-12);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
/* The bloom: the spark's light on the glass, top-left; stronger while she
   listens or thinks, so the whole window answers the mood, not only the
   dot. */
.consultant__window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 260px at 34px 34px, var(--iskra-glow-soft), transparent 70%);
  opacity: 0.8;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}
.consultant.is-listening .consultant__window::after { opacity: 1.3; }
.consultant.is-thinking .consultant__window::after { opacity: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  .consultant__window::before { animation: iskra-current 9s linear infinite; }
  .consultant.is-thinking .consultant__window::before { animation-duration: 3s; }
  @keyframes iskra-current { to { --iskra-a: 360deg; } }
}
.consultant__window.is-flying {
  transform-origin: top left;
  transition: transform 0.36s cubic-bezier(0.32, 0, 0.24, 1), opacity 0.36s ease;
}

.consultant__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px 12px 20px;
}
.consultant__head .consultant__who { margin-right: auto; }
.consultant__clear, .consultant__close {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 8px;
  font-family: var(--font-sans);
  color: var(--fg-45);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.consultant__clear { font-size: 12.5px; }
.consultant__close { font-size: 22px; line-height: 1; padding: 0 8px 3px; }
.consultant__clear:hover, .consultant__close:hover { color: var(--fg); background: var(--fg-10); }
.consultant__clear:focus-visible, .consultant__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The transcript. */
.consultant__log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-20) transparent;
}
.consultant__intro {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-75);
}
/* Starter questions as chips: obviously things to press. */
.consultant__starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.consultant__starter {
  appearance: none;
  border: 1px solid var(--iskra-pill-edge);
  background: var(--fg-04);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--fg-85);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.consultant__starter:hover { border-color: var(--accent-50); background: var(--iskra-pill); color: var(--fg); }
.consultant__starter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* One exchange: the visitor's line as a pill on the right, hers under it
   as text, full width. */
.consultant__entry { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0 12px; }
.consultant__q {
  align-self: flex-end;
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 18px 18px 5px 18px;
  background: var(--iskra-pill);
  box-shadow: inset 0 0 0 1px var(--iskra-pill-edge);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.consultant__a {
  width: 100%;
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.consultant__a:empty { display: none; }
.consultant__a p { margin: 0; }
.consultant__a p + p, .consultant__a p + ul, .consultant__a ul + p { margin-top: 9px; }
.consultant__a ul { margin: 0; padding-left: 18px; }
.consultant__a li + li { margin-top: 3px; }
.consultant__a a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-50); text-underline-offset: 3px; }
.consultant__a a:hover { text-decoration-color: var(--accent); }
.consultant__a strong { font-weight: 600; }
/* The message to Kamil, read back before it goes: lit along its left
   edge like the window's own current. */
.consultant__a blockquote {
  margin: 10px 0;
  padding: 8px 12px 8px 14px;
  border-left: 2px solid var(--spark);
  color: var(--fg);
  background: var(--iskra-glow-soft);
  border-radius: 0 10px 10px 0;
}
.consultant__a blockquote + p { margin-top: 10px; }
.is-failed .consultant__a { color: var(--fg-60); border-left: 2px dashed var(--fg-20); padding-left: 12px; }

/* The input: a line on the glass and one round button that lights up
   when there is something to send. */
.consultant__form {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px 14px 20px;
}
.consultant__form::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 1px;
  background: var(--fg-12);
  transition: background 0.25s ease;
}
.consultant__form:focus-within::before { background: linear-gradient(90deg, var(--spark), var(--iskra-edge) 60%, transparent); }
.consultant__input {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  border: 0;
  background: none;
  padding: 8px 0 6px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--fg);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-20) transparent;
}
/* The same quiet scrollbar for the transcript and the input where the
   standard property is not read (older WebKit). */
.consultant__log::-webkit-scrollbar, .consultant__input::-webkit-scrollbar { width: 6px; }
.consultant__log::-webkit-scrollbar-thumb, .consultant__input::-webkit-scrollbar-thumb { background: var(--fg-20); border-radius: 3px; }
.consultant__log::-webkit-scrollbar-track, .consultant__input::-webkit-scrollbar-track { background: transparent; }
.consultant__input::placeholder { color: var(--fg-35); }
.consultant__input:focus { outline: none; }
.consultant__send {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1px;
  border: 0;
  border-radius: 50%;
  background: var(--fg-08);
  color: var(--fg-60);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.consultant.is-listening .consultant__send:not(:disabled) {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 22px -4px var(--accent-70);
}
.consultant.is-listening .consultant__send:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 0 28px -2px var(--accent-70); }
.consultant__send:disabled { opacity: 0.4; cursor: default; }
.consultant__send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The home hero's fourth agent card is the launcher there: a button with
   the stack's own chrome and the spark in its bar. Pressed, the window
   takes off from it to the corner (consultant.js plays the flight) and the
   card is gone while the window is out, keeping only its space so the
   stack does not jump; on closing, the window flies back into that space
   and the card returns. The corner chip is there too, as on every page:
   the card is an invitation in the hero, the chip is where she lives. */
/* Iskra's card is her window in small: the window's own glass (the same
   tokens, redeclared here because the .consultant scope does not reach the
   hero), its blur, its shadow, the hairline edge and the bloom of the spark
   on the glass top-left. Her spark and name as in the window's head, its
   input line with the send arrow at the foot. */
.agent-stack .agent-card--dock {
  --spark: var(--accent);
  --iskra-glass: color-mix(in srgb, var(--bg) 84%, transparent);
  --iskra-glow: color-mix(in srgb, var(--spark) 24%, transparent);
  --iskra-glow-soft: color-mix(in srgb, var(--spark) 10%, transparent);
  position: relative;
  width: 100%;
  margin-top: 18px;
  transform: none;
  z-index: 4;
  border: 0;
  border-radius: 22px;
  background: var(--iskra-glass);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.85), 0 0 70px -20px var(--iskra-glow);
  overflow: visible;
}
:root[data-theme='light'] .agent-stack .agent-card--dock {
  --iskra-glass: color-mix(in srgb, #fbf8f1 86%, transparent);
  --iskra-glow: color-mix(in srgb, var(--spark) 22%, transparent);
  --iskra-glow-soft: color-mix(in srgb, var(--spark) 9%, transparent);
  box-shadow: 0 24px 60px -24px rgba(60, 40, 20, 0.35), 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent), 0 0 60px -20px var(--iskra-glow);
}
/* The edge: the window's hairline, brightening towards the accent on hover. */
.agent-card--dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--fg-12);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: background 0.2s ease;
}
.agent-card--dock:hover::before { background: color-mix(in srgb, var(--accent) 45%, transparent); }
/* The bloom: the spark's light on the glass, top-left, as in the window. */
.agent-card--dock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px 200px at 30px 30px, var(--iskra-glow-soft), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}
.agent-card__open { appearance: none; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.agent-card__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 22px; }
.dock__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px 12px; }
.spark--dock { display: block; width: 36px; height: 36px; flex: none; }
.spark--dock canvas { margin: -10px; }
.dock__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dock__name { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--fg); letter-spacing: 0.01em; }
.dock__role { font-family: var(--font-sans); font-size: 12.5px; color: var(--fg-55); }
.agent-card__status { font-family: var(--font-mono); font-size: 11px; color: var(--fg-55); margin-left: 8px; }
.agent-card__status:empty { display: none; }
.dock__form { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--fg-10); }
/* Line height = the arrow's height, so the text's centre is the arrow's centre;
   a nudge of 1px up corrects for the face sitting low in its box. */
.dock__input { flex: 1 1 auto; font-family: var(--font-sans); font-size: 15px; line-height: 34px; color: var(--fg-35); transform: translateY(-1px); }
.dock__send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-60); }
:root[data-theme='light'] .dock__role, :root[data-theme='light'] .agent-card__status { color: var(--fg-70); }
:root[data-theme='light'] .dock__input { color: var(--fg-45); }
/* The light theme's own shadow is a more specific rule than a plain
   `.is-open`, so it is named here too, or the empty card keeps its shadow. */
.agent-stack .agent-card--dock.is-open,
:root[data-theme='light'] .agent-stack .agent-card--dock.is-open { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.agent-card--dock.is-open::before, .agent-card--dock.is-open::after { display: none; }
.agent-card--dock.is-open .agent-card__open { visibility: hidden; }

@media (max-width: 560px) {
  /* The hero card mirrors what the window changes on a phone. */
  .agent-stack .agent-card--dock { border-radius: 18px; }
  .agent-stack .dock__input { font-size: 16px; }
  .agent-stack .dock__send { width: 38px; height: 38px; }
  .agent-stack .dock__input { line-height: 38px; }
  .consultant { left: 12px; right: 12px; max-width: none; }
  /* The open window spans the width and covers the back-to-top arrow; the
     arrow goes away for the duration (display, since its reveal animation
     owns opacity and visibility) rather than showing at the window's edge. */
  :root[data-iskra-open] .totop { display: none; }
  .consultant__window { width: 100%; max-width: none; max-height: min(80vh, 680px, calc(var(--iskra-visible, 100vh) - 24px)); border-radius: 18px; }
  .consultant__head { padding: 14px 10px 10px 16px; }
  .consultant__log { padding: 4px 16px 10px; }
  .consultant__form { padding-left: 16px; }
  .consultant__q { max-width: 90%; }
}
/* Fingers: the small controls get a hit area of a finger's size without
   growing on screen, and the input line is 16px, under which Safari on
   iOS zooms the whole page on focus and never zooms back. */
@media (hover: none) and (pointer: coarse) {
  .consultant__clear, .consultant__close { position: relative; }
  .consultant__clear::after, .consultant__close::after {
    content: "";
    position: absolute;
    inset: -10px -4px;
  }
  .consultant__send { width: 38px; height: 38px; }
  .consultant__input { font-size: 16px; }
}
@media print { .consultant { display: none; } }
