/* GENERATED by portfolio/scripts/lift-lumi-chat-kit.mjs from assets/sections.css, its "Chat window (the Lumi chat kit)" section. Do not edit; change sections.css, then run the script. Load the site fonts and tokens.css first. */
/* -----------------------------------------------------------------------------
   Chat window (the Lumi chat kit)
   ---
   .ccs                 the scene: a size container that holds the window and big Lumi; a host gives it a size
   .ccs-win             the glass window (glass tint, blur, specular, shadow, radius-xl)
   .ccs-ring            the spectrum ring round the window, shown while data-busy is on .ccs
   .ccs-head            the window's top row; holds the lockup
   .ccs-name            the lockup, a slot: <b>name</b><small>what it is for</small>
   .ccs-log             the messages, newest at the bottom, older ones fading off the top
   .ccs-msg             one message; .ccs-msg--bot (Lumi), --me (the visitor), --done (the last, bold, with .ccs-ok)
   .ccs-ok              the round tick beside a done message
   .ccs-av              Lumi's small canvas beside its own message
   .ccs-big             Lumi's large canvas behind (or, on the first screen, in front of) the window
   .ccs-hslot           the place big Lumi takes inside the window in the chat layout
   .ccs-hello           the opening: .ccs-bubble, then .ccs-faces of .ccs-face looks; .ccs-hello--gone folds it away
   .ccs-chips           one row of reply chips, .ccs-chip each
   .ccs-dots            the typing dots
   .ccs-ask-*           the field's parts, used inside the chat window: .ccs-ask-form, .ccs-ask-in, .ccs-ask-ib (send),
                        .ccs-ask-row (a question row), .ccs-ask-link; the ask field of their own was retired 25 Nov 2026
   .ccs-home            the site guide's chat window: .ccs-home-card, -top, -greet, -log, -msg, -next, -dots,
                        -mark, -reach, -foot, -grab; data-layout (stand), data-view (desk, phone)
   The chat window is built only while the page's chat switch is on (window.SG_CHAT,
   step 6 of the site guide plan); with it off they never reach the page. Unlike the window above
   they are interactive: before the switch goes on they start from a tested source (step 2b).
   Settings on .ccs: data-shape (wide or tall: where Lumi stands), data-lumi (behind, both or chat:
   Lumi behind the window, behind it and beside its messages, or inside it), data-busy (ring on),
   data-picked, data-snap, data-instant; --ccs-in (the window's inset), --ccs-top (big Lumi's
   first-screen move), --ccs-stops (the ring's colours, the six spectrum tokens).
   States: none a reader can reach. The window is a picture: its root is aria-hidden and nothing in
   it is focusable or clickable, so it has no hover, focus or disabled state. data-on and data-tap
   on a look or chip are the scene showing a tap.
   ----
   No tested source: this window is a picture, not interactive, so step 2b (start from a tested
   source) does not apply. Carbon's AI chat and Salesforce's chat blueprint are interactive chats
   (read 15 Nov 2026); USWDS and GOV.UK Frontend not checked. Logged in
   portfolio/docs/design-research/accessible-component-sources.md.
   Motion: the ring spins and the dots pulse. Reduce motion stills both, and a host stops them
   with data-motion-paused="1" (WCAG 2.2.2). Reduced transparency, or no backdrop-filter, turns
   the glass solid. Lumi is drawn by portfolio/assets/critter.js; the window never styles inside it.
   Private to the site (his pick 15 Nov 2026, "Private only"): this block stays in sections.css,
   which is not published, never in design-system/components.css. It is the one source:
   portfolio/scripts/sync-shared-lumi.mjs cuts it, from this header to the end of the file, into
   _mockups/_lib/ccs.css for review pages. Keep it last in this file, and the Top skills card's own
   hooks (.sc-card[data-k="chat"]) above it. Notes: portfolio/docs/design-research/lumi-chat-kit.md.
   ----------------------------------------------------------------------------- */
@property --ccs-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ccs-spin { to { --ccs-angle: 360deg; } }
/* Its own box: the window and Lumi are sized in cqw and cqh, so a host gives .ccs a size. :where()
   keeps this at zero weight, so a host's own rule wins whatever its order (the card's .scl sets
   position: absolute above this block). */
:where(.ccs) { position: relative; container-type: size; }
.ccs {
  --ccs-in: var(--space-300);
  --ccs-top: none; /* big Lumi's place on the first screen; skill-card-chat.js sets it */
  --ccs-stops: var(--fx-spectrum-1), var(--fx-spectrum-2), var(--fx-spectrum-3), var(--fx-spectrum-4), var(--fx-spectrum-5), var(--fx-spectrum-6), var(--fx-spectrum-1);
  font-size: var(--size-sm); line-height: var(--line-snug); color: var(--color-text-primary);
  transition: opacity var(--duration-fast) var(--ease-default);
}
.ccs[data-instant], .ccs[data-instant] * { transition: none !important; }

/* Lumi, large. Its canvas is wider than its body (the body is about 56% of it). */
/* A size before the scene picks its shape: with no CSS size the canvas takes its own
   pixel size, the resize doubles that each frame, and it grows to the browser's limit
   (seen under Reduce motion, before the card is scrolled to). */
.ccs-big { position: absolute; display: block; width: 0; height: 0; transform-origin: 50% 50%; transition: transform var(--duration-expressive) var(--ease-emphasized); }
.ccs-big[hidden] { display: none; }
.ccs[data-shape="wide"] .ccs-big { width: 104cqh; height: 104cqh; left: calc(72cqw - 52cqh); top: calc(50cqh - 52cqh); }
.ccs[data-shape="tall"] .ccs-big { width: 80cqw; height: 80cqw; left: calc(64cqw - 40cqw); top: calc(25cqh - 40cqw); }
/* On the first screen it stands in front of the window, big and centred over the greeting
   (skill-card-chat.js works out --ccs-top), then slides back to its place once the chat starts.
   Transform only; it settles, no bounce. data-snap puts it back in one step on replay. His pick
   12 Nov 2026, chat LUMI CARD. */
.ccs[data-snap] .ccs-big { transition: none; }
.ccs:not([data-lumi="chat"]):not([data-picked]) .ccs-big { z-index: 2; transform: var(--ccs-top); }
/* In the chat only: big in the window while it picks a look, then gone. */
.ccs[data-lumi="chat"] .ccs-hslot { display: block; width: min(30cqh, 30cqw); height: min(30cqh, 30cqw); margin: calc(-0.08 * min(30cqh, 30cqw)) auto calc(-0.12 * min(30cqh, 30cqw)); }
.ccs[data-lumi="chat"] .ccs-hslot .ccs-big { position: static; width: 100%; height: 100%; }
.ccs-hslot { display: none; }

/* The window: glass over the card, the width of the picture. */
.ccs-win {
  position: absolute; display: flex; flex-direction: column; gap: var(--space-200); padding: var(--space-200);
  background: var(--glass-tint-scrolled);
  -webkit-backdrop-filter: blur(var(--glass-blur-webkit)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-webkit)) saturate(var(--glass-saturate));
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), var(--glass-specular);
}
.ccs[data-shape="wide"] .ccs-win { inset: var(--ccs-in) var(--ccs-in) var(--ccs-in) 0; }
.ccs[data-shape="wide"][data-lumi="behind"] .ccs-win,
.ccs[data-shape="wide"][data-lumi="both"] .ccs-win { right: 40cqw; }
.ccs[data-shape="tall"] .ccs-win { inset: var(--ccs-in); }
.ccs[data-shape="tall"][data-lumi="behind"] .ccs-win,
.ccs[data-shape="tall"][data-lumi="both"] .ccs-win { top: 40cqh; }
/* The window is only as tall as the chat in it and grows up from the bottom as messages come in,
   so no empty band sits between the name and the chat (his pick 12 Nov 2026). */
.ccs[data-shape][data-lumi] .ccs-win { top: auto; max-height: calc(100% - 2 * var(--ccs-in)); }
.ccs[data-shape="tall"][data-lumi]:not([data-lumi="chat"]) .ccs-win { max-height: calc(100% - 40cqh - var(--ccs-in)); }
/* A narrow card (a 320 to 375 phone): the two line name takes the greeting's room, so the name
   steps down one size and the window may rise a little higher. */
@container (max-width: 350px) {
  .ccs[data-shape="tall"][data-lumi]:not([data-lumi="chat"]) .ccs-win { max-height: calc(100% - 30cqh - var(--ccs-in)); }
  .ccs .ccs-head { font-size: var(--size-lg); }
}
.ccs-ring {
  position: absolute; inset: 0; border-radius: inherit; padding: var(--space-50); pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--ccs-angle), var(--ccs-stops)); animation: ccs-spin var(--duration-expressive) linear infinite;
  -webkit-mask-image: linear-gradient(var(--color-static-white) 0 0), linear-gradient(var(--color-static-white) 0 0);
  -webkit-mask-clip: content-box, border-box; -webkit-mask-composite: xor;
  mask-image: linear-gradient(var(--color-static-white) 0 0), linear-gradient(var(--color-static-white) 0 0);
  mask-clip: content-box, border-box; mask-composite: exclude;
  transition: opacity var(--duration-moderate) var(--ease-default);
}
.ccs[data-busy] .ccs-ring { opacity: 1; }
.ccs-head { display: flex; align-items: center; padding: var(--space-100) var(--space-300) 0; font-size: var(--size-xl); line-height: var(--line-heading); } /* lint-ok: the name's line height, tight on its two line lockup */
/* The clinic's lockup (clinic brand, Direction 1, locked 11 Nov): lumi in lower case Work Sans
   at 500 with tight tracking, IMAGING small in caps under it. His pick 12 Nov 2026. */
.ccs-name { display: inline-grid; gap: 0.32em; min-width: 0; padding-block: var(--space-50); font-family: var(--font-body); font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; } /* lint-ok: the clinic wordmark's weight, tracking and gap */
.ccs-name b { font-weight: inherit; }
.ccs-name small { font-size: var(--size-2xs); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; padding-left: 0.1em; } /* lint-ok: the clinic lockup's IMAGING tracking */

/* The messages: newest at the bottom, older ones fade off the top. */
.ccs-log {
  flex: 0 1 auto; min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: var(--space-300);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-200);
  background: color-mix(in srgb, var(--color-bg) 50%, var(--color-surface)); border-radius: var(--radius-lg);
  -webkit-mask-image: linear-gradient(transparent, var(--color-static-white) var(--space-600));
  mask-image: linear-gradient(transparent, var(--color-static-white) var(--space-600));
}
.ccs-msg { flex: none; max-width: 88%; text-wrap: pretty; transition: opacity var(--duration-base) var(--ease-default), translate var(--duration-moderate) var(--ease-emphasized); }
@starting-style { .ccs-msg { opacity: 0; translate: 0 var(--space-200); } }
.ccs-msg--bot { align-self: flex-start; display: flex; align-items: center; gap: var(--space-200); }
.ccs-msg--me { align-self: flex-end; padding: var(--space-100) var(--space-300); border-radius: var(--radius-lg); background: var(--color-text-primary); color: var(--color-bg); }
.ccs-msg--done { font-weight: var(--weight-semibold); }
.ccs-ok { flex: none; display: grid; place-items: center; width: var(--space-500); height: var(--space-500); border-radius: var(--dot-radius); background: var(--color-text-primary); color: var(--color-bg); }
.ccs-ok svg { width: 60%; height: 60%; }
/* Lumi beside its own message: the canvas is wider than the body, so it pulls in. */
.ccs-av { display: block; flex: none; width: var(--space-800); height: var(--space-800); margin: calc(-1 * var(--space-300)) calc(-1 * var(--space-300)) calc(-1 * var(--space-300)) calc(-1 * var(--space-400)); }
.ccs-av[hidden] { display: none; }

/* The opening: the bubble and the five looks, which fold away once one is picked. */
.ccs-hello { align-self: stretch; max-width: none; display: grid; justify-items: center; gap: var(--space-200); }
.ccs-hello--gone { display: none; }
.ccs-bubble { margin: 0; justify-self: center; padding: var(--space-100) var(--space-300); border-radius: var(--radius-lg); background: var(--glass-tint-scrolled); box-shadow: var(--glass-specular); font-weight: var(--weight-semibold); }
.ccs-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-100); width: 100%; }
.ccs-face { display: grid; justify-items: center; gap: var(--space-50); padding: var(--space-100) 0; border-radius: var(--radius-lg); border: 1px solid transparent; transition: background var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default), scale var(--duration-fast) var(--ease-default); }
.ccs-face img { width: min(var(--space-800), 12cqw); height: min(var(--space-800), 12cqw); margin: calc(-1 * var(--space-200)) 0 calc(-1 * var(--space-100)); display: block; }
.ccs-face[data-on] { background: var(--color-surface); border-color: var(--color-border-strong); }
.ccs-face[data-tap] { scale: 0.94; }

/* The buttons: one row, short words, so they never wrap. */
.ccs-chips:empty { display: none; }
.ccs-chips { display: flex; flex-wrap: nowrap; gap: var(--space-100); overflow: hidden; min-height: calc(var(--space-600) + var(--space-50)); padding-inline: var(--space-100); }
.ccs-chip { flex: none; display: inline-grid; place-items: center; padding: 0 var(--space-300); height: var(--space-600); border-radius: var(--chip-radius); border: 1px solid var(--color-border-strong); background: var(--color-surface); font: var(--weight-semibold) var(--size-xs)/1 var(--font-body); white-space: nowrap; transition: background var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default), scale var(--duration-fast) var(--ease-default); }
.ccs-chip[data-tap] { background: var(--color-text-primary); color: var(--color-bg); border-color: transparent; scale: 0.94; }

.ccs-dots { display: inline-flex; gap: var(--space-100); align-items: center; min-height: 1.4em; padding-inline: var(--space-100); } /* lint-ok: one line of message text, so the typing dots hold a message's height; moved as it was from sections.css */
.ccs-dots i { width: var(--space-200); height: var(--space-200); border-radius: var(--dot-radius); background: var(--color-text-tertiary); animation: ccs-dot var(--duration-expressive) var(--ease-default) infinite; }
.ccs-dots i:nth-child(2) { animation-delay: calc(var(--duration-stagger) * 6); }
.ccs-dots i:nth-child(3) { animation-delay: calc(var(--duration-stagger) * 12); }
@keyframes ccs-dot { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

/* Paused or Reduce motion: the last frame, nothing moving. A host pauses it the way every motion
   region on natemills.me does: data-motion-paused="1" on the window's root or any box round it. */
[data-motion-paused="1"] .ccs-ring, [data-motion-paused="1"] .ccs-dots i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ccs-ring, .ccs-dots i { animation: none; --ccs-angle: 125deg; }
  .ccs-msg { translate: none; }
  @starting-style { .ccs-msg { translate: none; } }
}
@media (prefers-reduced-transparency: reduce) {
  .ccs-win, .ccs-bubble { background: var(--color-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ccs-win { background: var(--color-surface); }
}

/* ---- The site guide's chat parts (chat SITE GUIDE BUILD, 15 Nov 2026): the field's parts (spec-ask.md) and the
   Ask AI chat (spec-homes.md). Run only while window.SG_CHAT is on (step 6). Its own ask field and the chat that grew
   under it were retired 25 Nov 2026 (his box answer "Retire it"): their rules went with them. ---- */
.ccs-ask-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-200);
  inline-size: 100%;
  min-block-size: calc(var(--space-700) + var(--space-200));
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-250) var(--space-200);
  border-radius: var(--btn-radius);
}
.ccs-ask-form:has(.ccs-ask-in:focus-visible) {
  outline: 1.5px solid var(--color-focus-ring); /* lint-ok: a hair under the 2px ring, full colour so it holds 3:1 on any ground (from sga.css) */
  outline-offset: 0;
}
.ccs-ask-in {
  flex: 1 1 auto;
  min-inline-size: 0;
  block-size: var(--touch-target-min);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  line-height: 1.3;
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-primary);
  caret-color: var(--color-focus-ring);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ccs-ask-in::placeholder { color: var(--color-text-secondary); opacity: 1; text-overflow: ellipsis; }
.ccs-ask-ib {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  inline-size: var(--space-600);
  block-size: var(--space-600);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--btn-radius);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default);
}
.ccs-ask-ib::after { content: ""; position: absolute; inset: calc(var(--space-100) * -1.5); border-radius: inherit; }
.ccs-ask-ib svg, .ccs-ask-ib i { inline-size: var(--space-400); block-size: var(--space-400); display: block; }
.ccs-ask-ib:focus-visible { outline: var(--border-focus); outline-offset: var(--focus-ring-offset); }
@media (hover: hover) {
  .ccs-ask-ib:hover { background-color: rgb(from var(--color-text-primary) r g b / var(--alpha-200)); color: var(--color-text-primary); }
}
.ccs-ask-send svg { transform: rotate(-90deg); }
.ccs-ask-send[data-on], .ccs-ask-send[data-on]:hover { background-color: var(--color-accent); color: var(--color-on-accent); }
.ccs-ask-row {
  display: flex;
  align-items: center;
  gap: var(--space-300);
  inline-size: 100%;
  min-block-size: var(--touch-target-min);
  margin: 0;
  padding: 0 var(--space-300);
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  font: inherit;
  font-size: var(--size-xs);              /* his pick 15 Nov: the chat kit's chip type, extra small and semibold */
  font-weight: var(--weight-semibold);
  line-height: var(--line-title);
  text-align: start;
  color: var(--color-text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) var(--ease-default);
}
@media (pointer: fine) { .ccs-ask-row { min-block-size: var(--btn-sm); } }   /* his note 15 Nov, "smaller takes up the same room": with a mouse the smaller words get the kit chip's height; a finger keeps the full target */
.ccs-ask-row svg, .ccs-ask-row i { flex: none; inline-size: var(--space-400); block-size: var(--space-400); color: var(--color-text-primary); }   /* the row mark takes the words' colour (his pick 16 Nov, spec-chat-tags.md "Row mark") */
.ccs-ask-row:focus-visible { outline: var(--border-focus); outline-offset: calc(var(--focus-ring-offset) * -1); }
@media (hover: hover) {
  .ccs-ask-row:hover { background-color: rgb(from var(--color-text-primary) r g b / var(--alpha-200)); }
}
/* The AI notice (site-guide.js, NOTE): one short line under Lumi's first answer in the chat. */
.ccs-home-note { flex: 1 1 100%; min-inline-size: 0; margin: 0; padding-block: var(--space-200); font-size: var(--size-xs); line-height: var(--line-title); color: var(--color-text-secondary); }
.ccs-home-note[hidden] { display: none; }
.ccs-ask-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-100);
  min-block-size: var(--touch-target-dot);
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ccs-ask-link svg, .ccs-ask-link i { inline-size: var(--space-400); block-size: var(--space-400); }
.ccs-ask-link:focus-visible { outline: var(--border-focus); outline-offset: var(--focus-ring-offset); border-radius: var(--radius-sm); }
.ccs-ask-ph { font-family: var(--font-mono); font-size: var(--size-2xs); letter-spacing: var(--tracking-mono); color: var(--color-text-secondary); }
.ccs-ask-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* ==== The chat homes (chat SITE GUIDE HOMES, 15 Nov 2026) ===================================
   Where the chat lives after the first answer. One sheet of the site's glass holds it; nothing
   glass sits inside glass. Inside, only solid tints: the question in ink, the field a quiet
   capsule. Sizes, colours, radii and timings are tokens. */
.ccs-home-g {
  box-sizing: border-box;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass-tint-scrolled), var(--glass-tint-scrolled)) padding-box,
    linear-gradient(180deg, var(--glass-edge-top), var(--glass-edge-bottom)) border-box;
  -webkit-backdrop-filter: blur(var(--glass-blur-webkit)) saturate(var(--glass-saturate)) brightness(var(--glass-dim));
  backdrop-filter: blur(var(--glass-blur-webkit)) saturate(var(--glass-saturate)) brightness(var(--glass-dim));
  box-shadow: var(--glass-specular), var(--glass-shadow);
  /* It grows out of the field: from the field's corner, transform and opacity only. */
  opacity: 0;
  transform: scale(0.96);
  transform-origin: var(--ccs-home-to, left top);
  transition: opacity var(--duration-fast) var(--ease-exit), transform var(--duration-fast) var(--ease-exit);
}
.ccs-home[data-open].ccs-home-g,
.ccs-home[data-open] .ccs-home-g {
  opacity: 1;
  transform: none;
  transition: opacity var(--duration-base) var(--ease-entrance), transform var(--duration-moderate) var(--ease-emphasized);
}
/* Dark theme: its glass takes the site's strong tint (ink at 0.9; the kit's usual tint is 0.7). Measured 16 Nov 2026
   (WCAG 1.4.3 asks 4.5 to 1): with the usual tint, light things behind its glass (a white card, the hero's light, the
   lime footer) lifted the ground until its small grey words read as low as 2.49 to 1. The strong tint holds the ground
   dark enough over anything (worst 4.96). The light theme passes as it is (worst 8.03). His look: a row on the build page. */
[data-theme="dark"] .ccs-home-g {
  background:
    linear-gradient(var(--glass-tint-strong), var(--glass-tint-strong)) padding-box,
    linear-gradient(180deg, var(--glass-edge-top), var(--glass-edge-bottom)) border-box;
}

.ccs-home {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: var(--space-200);
  border-radius: var(--radius-2xl);
  font-family: var(--font-body);
  color: var(--color-text-primary);
}
.ccs-home[hidden] { display: none; }
.ccs-home[data-fixed] { position: fixed; z-index: var(--z-dropdown); }
.ccs-home[data-anchor="ai"] { --ccs-home-to: right top; }   /* phone too: the Ask AI anchor always won over the phone corner, which only its own chat used */

.ccs-home-col { display: flex; flex-direction: column; flex: 1 1 auto; min-inline-size: 0; min-block-size: 0; gap: var(--space-200); }
.ccs-home-card { display: flex; flex-direction: column; flex: 1 1 auto; min-block-size: 0; }

/* The top row: its greeting where it is new to the place, and the cross. */
.ccs-home-top { display: flex; align-items: center; gap: var(--space-300); min-block-size: var(--space-600); padding: 0 0 0 var(--space-300); }
.ccs-home-greet { flex: 1 1 auto; margin: 0; font-size: var(--size-lg); font-weight: var(--weight-medium); line-height: var(--line-title); letter-spacing: var(--tracking-normal); text-wrap: balance; }
.ccs-home-x { margin-inline-start: auto; align-self: flex-start; }

/* Where it stands in the chat. Empty boxes: its canvas is placed over them, whole, never cut. */
.ccs-home-spot { display: none; flex: none; aspect-ratio: 1; pointer-events: none; }
.ccs-home-spot--top { inline-size: var(--space-1000); }
.ccs-home-spot--big { inline-size: min(100%, calc(var(--space-1200) + var(--space-600))); }
.ccs-home[data-layout="stand"][data-anchor="ai"] .ccs-home-spot--top,
.ccs-home[data-layout="stand"][data-view="phone"] .ccs-home-spot--top { display: block; }
.ccs-home[data-layout="side"] .ccs-home-spot--big { display: block; }

/* The thread. Its words sit straight on the glass; only the question is a bubble. */
.ccs-home-scroll { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; }
.ccs-home-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
  margin: 0;
  padding: var(--space-300);
  list-style: none;
}
.ccs-home-log:empty { display: none; }
.ccs-home-msg { flex: none; margin: 0; transition: opacity var(--duration-base) var(--ease-entrance), translate var(--duration-moderate) var(--ease-emphasized); }
@starting-style { .ccs-home-msg { opacity: 0; translate: 0 var(--space-200); } }
.ccs-home-msg--me {
  align-self: flex-end;
  max-inline-size: 86%;
  padding: var(--space-200) var(--space-300);
  border-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-sm);
  background: var(--color-text-primary);
  color: var(--color-bg);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}
.ccs-home-msg--bot { align-self: flex-start; max-inline-size: 94%; display: grid; gap: var(--space-200); justify-items: start; font-size: var(--size-base); line-height: var(--line-snug); text-wrap: pretty; }
.ccs-home-msg--bot p { margin: 0; }
.ccs-home-dots { padding-block: var(--space-200); }   /* the dots themselves are the speech bubble's own (.sg-dots, his note 2, 19 Nov 2026) */

/* What to ask next, then the two ways to reach him. */
.ccs-home-next { display: grid; gap: 0; padding: 0 var(--space-100) var(--space-100); }
.ccs-home-next:empty { display: none; }
.ccs-home-next > * { transition: opacity var(--duration-base) var(--ease-entrance) calc(var(--ccs-home-i, 0) * var(--duration-reveal-gap)), translate var(--duration-moderate) var(--ease-emphasized) calc(var(--ccs-home-i, 0) * var(--duration-reveal-gap)); }
@starting-style { .ccs-home-next > * { opacity: 0; translate: 0 var(--space-200); } }
.ccs-home-reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); gap: var(--space-200); padding: var(--space-200) var(--space-200) var(--space-100); }
.ccs-home-r {
  display: flex;
  align-items: center;
  gap: var(--space-200);
  min-block-size: var(--touch-target-min);
  padding: 0 var(--space-300);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-default);
}
.ccs-home-r > span:not(.ccs-home-li) { flex: 1 1 auto; min-inline-size: 0; }
.ccs-home-r svg, .ccs-home-r i { flex: none; inline-size: var(--space-400); block-size: var(--space-400); }
.ccs-home-r svg:last-child, .ccs-home-r i:last-child { color: var(--color-text-secondary); }
.ccs-home-li { flex: none; inline-size: var(--space-400); block-size: var(--space-400); background: currentColor; -webkit-mask: url("../../../assets/logos/linkedin-in.png") center / contain no-repeat; mask: url("../../../assets/logos/linkedin-in.png") center / contain no-repeat; }   /* LinkedIn's own mark, the file the site ships */
.ccs-home-r:focus-visible { outline: var(--border-focus); outline-offset: var(--focus-ring-offset); }
@media (hover: hover) { .ccs-home-r:hover { background-color: rgb(from var(--color-text-primary) r g b / var(--alpha-100)); } }

/* The field inside the chat: the same field, now a quiet capsule on the glass. */
.ccs-home-form { flex: none; background: rgb(from var(--color-text-primary) r g b / var(--alpha-100)); padding-inline: var(--space-400) var(--space-200); }
.ccs-home .ccs-ask-in:focus, .ccs-home .ccs-ask-in:focus-visible { outline: none; box-shadow: none; }
.ccs-home[data-layout="stand"] .ccs-home-form { min-block-size: var(--space-700); }   /* the Ask AI typing box: 48 px row round the 44 px field, his pick 20 Nov 2026 (chat ASK FIELD) */

/* The last line: what is placeholder, and the five AI links, small with room round them. */
.ccs-home-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-100) var(--space-400); min-block-size: var(--space-600); padding: 0 var(--space-300); }
.ccs-home-ai { display: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-inline-size: 0; gap: var(--space-100) var(--space-300); }
.ccs-home-ai-l { font-size: var(--size-xs); color: var(--color-text-secondary); white-space: nowrap; }
.ccs-home-marks { display: flex; align-items: center; gap: var(--space-200); }
.ccs-home-marks--in { display: none; gap: var(--space-100); }
.ccs-home-mark { position: relative; flex: none; display: grid; place-items: center; inline-size: var(--space-600); block-size: var(--space-600); border-radius: var(--dot-radius); color: var(--color-text-secondary); transition: background-color var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default); }
.ccs-home-mark::after { content: ""; position: absolute; inset: calc(var(--space-100) * -1.5) calc(var(--space-100) * -1); }
.ccs-home-mark .ask-ai-mark { inline-size: var(--space-400); block-size: var(--space-400); }
.ccs-home-mark:focus-visible { outline: var(--border-focus); outline-offset: var(--focus-ring-offset); }
@media (hover: hover) { .ccs-home-mark:hover { background-color: rgb(from var(--color-text-primary) r g b / var(--alpha-200)); color: var(--color-text-primary); } }
.ccs-home[data-where="ai"] .ccs-home-ai { display: inline-flex; }

.ccs-home[data-layout="stand"] .ccs-home-stage { display: none; }

/* Shape: stand, the Ask AI window. */
.ccs-home[data-layout="stand"][data-anchor="ai"] .ccs-home-top { align-items: center; padding: var(--space-200) 0 0 var(--space-200); }

/* Shape: side (his 14 Nov lean), the hero window. It owns one half, whole; the words keep to the other. Its black twin, room, was never set by the script and was cut (19 Nov 2026). */
.ccs-home[data-layout="side"] { flex-direction: row; gap: var(--space-200); }
.ccs-home-stage { position: relative; flex: 0 0 46%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-block-size: calc(var(--space-1200) + var(--space-900)); padding: var(--space-400); border-radius: var(--radius-xl); }
.ccs-home-hook { display: none; margin: 0; font-size: var(--size-xl); font-weight: var(--weight-medium); line-height: var(--line-heading); letter-spacing: var(--tracking-normal); }
.ccs-home[data-layout="side"] .ccs-home-greet { display: none; }
.ccs-home[data-layout="side"] .ccs-home-hook { display: block; position: absolute; inset-inline-start: var(--space-400); inset-block-end: var(--space-400); }
/* Few words, set big: no bubbles here. The question is a quiet line, the answer is the first line. */
.ccs-home[data-layout="side"] .ccs-home-msg--me { align-self: flex-start; max-inline-size: none; padding: 0; background: none; color: var(--color-text-secondary); font-weight: var(--weight-regular); }
.ccs-home[data-layout="side"] .ccs-home-msg--bot { max-inline-size: none; font-size: var(--size-lg); font-weight: var(--weight-medium); line-height: 1.3; }
.ccs-home[data-layout="side"] .ccs-home-msg--me + .ccs-home-msg--bot { margin-block-start: calc(var(--space-200) * -1); }

/* Phones: every shape is a sheet two thirds tall (his round 1 pick), the page still showing above. */
.ccs-home[data-view="phone"] {
  inset: auto 0 0 0;
  block-size: 66dvh;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding-block-end: max(var(--space-300), env(safe-area-inset-bottom));
  flex-direction: column;
}
.ccs-home[data-view="phone"] .ccs-home-top { min-block-size: var(--touch-target-min); }
.ccs-home[data-view="phone"][data-layout="stand"] .ccs-home-spot--top { inline-size: calc(var(--space-800) + var(--space-200)); margin-block-start: calc(var(--space-700) * -1); }   /* 72: it stands on the sheet's top edge */
.ccs-home[data-view="phone"][data-layout="stand"] .ccs-home-greet { display: block; }
.ccs-home[data-view="phone"] .ccs-home-stage { align-items: center; flex: none; min-block-size: 0; justify-content: flex-start; gap: var(--space-300); padding: var(--space-200) var(--space-300); }
.ccs-home[data-view="phone"] .ccs-home-spot--big { inline-size: calc(var(--space-900) + var(--space-500)); }
.ccs-home[data-view="phone"] .ccs-home-hook { position: static; text-wrap: balance; }
.ccs-home[data-view="phone"][data-layout="side"] .ccs-home-top { position: absolute; inset-block-start: var(--space-200); inset-inline-end: var(--space-200); z-index: 1; }
.ccs-home[data-view="phone"][data-layout="side"] .ccs-home-greet { display: none; }
html[data-ccs-home-open] .ask-ai-bar, html[data-ccs-home-open] .fab-chip { opacity: 0; pointer-events: none; transition: opacity var(--duration-fast) var(--ease-exit); }
@media (min-width: 768px) { html[data-ccs-home-open] .fab-chip { opacity: 1; pointer-events: auto; } }

/* The phone's door to the chat (his picks 22 Nov 2026, chat MOBILE ASK AI, review page mobile-ask-door: "round button,
   bottom left", glass). Markup: CMP:ask-ai-bar. It shows under 34em once the chat is on, and the strip above stands down:
   its five links sit in the chat's foot. Level with the "How this was built" chip in the other corner, and it rests the
   way the chip does: unseen over the hero and by the footer, still in the Tab order there (it shows on focus, as the strip
   did), and out of the way while the chat or the menu is open. The edge needs no 3:1: the glyph names the control
   (WCAG 1.4.11, as .btn--icon says). Hover, focus and press are the round icon button's own. */
.ask-ai-door { display: none; }
@media (max-width: 33.99875em) {
  html[data-ccs-home-ai="on"] .ask-ai-bar { display: none; }
  html[data-ccs-home-ai="on"] .ask-ai-door {
    display: block; position: fixed; z-index: var(--z-sticky);
    inset-inline-start: max(var(--space-400), env(safe-area-inset-left));
    inset-block-end: max(var(--space-400), env(safe-area-inset-bottom));
    transition: opacity var(--duration-fast) var(--ease-default), transform var(--duration-moderate) var(--ease-default);
  }
  .ask-ai-door-btn {
    inline-size: 46px; block-size: 46px; /* lint-ok: the chip's own height (36 disc, 4 padding each side, 1 edge each side), so the two corners read as a pair */
    background: var(--glass-tint-strong); border-color: var(--color-border); color: var(--color-text-primary);
    box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur-webkit); backdrop-filter: var(--glass-blur);
  }
  /* The bubble fills about half the circle (his pick 23 Nov 2026, chat ASK AI ICON, review page ask-ai-icon: 5 of 5),
     up from the 16 px button glyph that read too small on a phone. */
  .ask-ai-door-btn i, .ask-ai-door-btn svg { width: var(--size-xl); height: var(--size-xl); }
  #floating-chip[inert] ~ .ask-ai-door:not(:focus-within), body[data-footer-near] .ask-ai-door:not(:focus-within) { opacity: 0; pointer-events: none; transform: translateY(var(--space-300)); }
  html[data-ccs-home-open] .ask-ai-door, body.drawer-open .ask-ai-door { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(var(--space-300)); transition: opacity var(--duration-fast) var(--ease-exit), transform var(--duration-fast) var(--ease-exit), visibility 0s var(--duration-fast); }
}
/* The chip shares the bottom edge with the door now: it never grows into the door's corner, even at large text, where its
   title wraps instead. 46 is the door, then a gap the same as each screen edge. */
@media (max-width: 33.99875em) {
  html[data-ccs-home-ai="on"] .fab-chip { max-width: calc(100vw - 46px - var(--space-400) * 3); } /* lint-ok: 46 is the door's size, set above */
}
/* Lumi's sound button (site-guide.js, his picks sent with no note 23 Nov 2026, chat LUMI SOUND ICON, review page
   lumi-sound-button): the Ask AI door's twin on computers, bottom left, 46px glass, 16px from each edge. It rests the way the
   door does: unseen over the hero (the hero's LinkedIn and GitHub links sit in that corner) and by the footer, still in the
   Tab order there and shown on focus, and out of the way while the chat or the menu is open. Phones get no button (his pick).
   Five bars that move with Lumi's sound (their heights come from site-guide.js as --sg-snd-h); off, and before the first
   tap, they give way to the chat Sound switch's mute icon. Hover, focus and press are the round icon button's own. The edge
   needs no 3:1: the glyph names the control (WCAG 1.4.11, as .btn--icon says). */
.sg-snd {
  position: fixed; z-index: var(--z-sticky);
  inset-inline-start: max(var(--space-400), env(safe-area-inset-left));
  inset-block-end: max(var(--space-400), env(safe-area-inset-bottom));
  transition: opacity var(--duration-fast) var(--ease-default), transform var(--duration-moderate) var(--ease-default);
}
.sg-snd[hidden] { display: none; }
.sg-snd-btn {
  inline-size: 46px; block-size: 46px; /* lint-ok: the Ask AI door's size, so the site has one round button */
  background: var(--glass-tint-strong); border-color: var(--color-border); color: var(--color-text-primary);
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur-webkit); backdrop-filter: var(--glass-blur);
}
.sg-snd-bars { display: flex; align-items: flex-end; justify-content: center; gap: calc(var(--space-50) * 1.5); block-size: var(--space-400); }
.sg-snd-bars > i { --sg-snd-h: 0.5; inline-size: var(--space-50); block-size: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(var(--sg-snd-h)); transition: transform calc(var(--duration-fast) * 0.6) var(--ease-default); }
.sg-snd-off { display: none; inline-size: 1.25em; block-size: 1.25em; background: currentColor; -webkit-mask: var(--ccs-i-mute) center / contain no-repeat; mask: var(--ccs-i-mute) center / contain no-repeat; }
.sg-snd[data-st="off"] .sg-snd-bars { display: none; }
.sg-snd[data-st="off"] .sg-snd-off { display: block; }
#floating-chip[inert] ~ .sg-snd:not(:focus-within), body[data-footer-near] .sg-snd:not(:focus-within) { opacity: 0; pointer-events: none; transform: translateY(var(--space-300)); }
html[data-ccs-home-open] .sg-snd, body.drawer-open .sg-snd { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(var(--space-300)); transition: opacity var(--duration-fast) var(--ease-exit), transform var(--duration-fast) var(--ease-exit), visibility 0s var(--duration-fast); }
@media (max-width: 767.98px) { .sg-snd { display: none; } }
@media (prefers-reduced-transparency: reduce) { .sg-snd-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-surface); } }
@media print { .sg-snd { display: none; } }
@media (prefers-reduced-transparency: reduce) { .ask-ai-door-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-surface); } }

@media (prefers-reduced-motion: reduce) {
  .ccs-home-g, .ccs-home-msg, .ccs-home-next > * { transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .ccs-home-g { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-surface); border-color: var(--color-border); } }
/* stylelint-disable scale-unlimited/declaration-strict-value -- Canvas and CanvasText are the system colours forced-colors mode requires */
@media (forced-colors: active) { .ccs-home-g { background: Canvas; color: CanvasText; border-color: CanvasText; -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* stylelint-enable scale-unlimited/declaration-strict-value */
@media print { .ccs-home, .ask-ai-door { display: none; } }

/* While the guide's chat is open inside Ask AI, the site's own five-link pill stands down; its colour ring on the button stays. */
html[data-ccs-home-open="ai"] #ask-ai-drop, html[data-ccs-home-open="ai"] #ask-ai-aura { display: none; }

/* Phones: the sheet sits over the page's own floating labels; it still stands on its edge. */
.ccs-home[data-view="phone"][data-fixed] { z-index: var(--z-sticky); }
/* It peeks out from behind the sheet's top edge (his note 22 Nov 2026, chat MOBILE ASK AI: "lumi character behind the
   sheet, peeking out"). Phones only: on a computer it stays clear of the window (21 Nov). Above the page, under the sheet. */
html[data-ccs-home-open][data-ccs-home-view="phone"] .sg-cv[data-fixed][data-z], html[data-ccs-home-open][data-ccs-home-view="phone"] .sg-cv[data-fixed], html[data-ccs-home-open][data-ccs-home-view="phone"] .sg-hit[data-fixed] { z-index: var(--z-dropdown); }   /* the layer under the sheet (--z-sticky); [data-z] outranks the Ask AI window rule below, which sets it over a computer's window */

/* Phones: the thread sits by the field, as chats do, so no empty band opens between the answer and the field. */
.ccs-home[data-view="phone"] .ccs-home-scroll { display: flex; flex-direction: column; }
.ccs-home[data-view="phone"] .ccs-home-log { margin-block-start: auto; }
html[data-ccs-home-open][data-ccs-home-view="phone"] .ask-ai-bar { visibility: hidden; }   /* the site's own Ask AI strip never shows through the field */
.ccs-home-foot .ccs-ask-ph { font-size: var(--size-xs); }

/* It sits whole inside the stage, never across its edge. On phones the stage is one tight band, so the thread keeps its room. */
.ccs-home[data-view="phone"][data-layout="side"] .ccs-home-spot--big { inline-size: var(--space-900); }


/* The Ask AI chat, tightened (his pick 16 Nov 2026, chat LUMI CHAT WINDOW, "One line"): small Lumi and a
   smaller greeting share one line top left; the cross is an outlined circle the same distance from both
   edges of the corner; the notice is a small line under the field; on a phone the sheet is only as tall
   as what is in it. The note, the "Or ask another AI" label and the field's hint take the primary text
   colour: in the secondary colour they measured 2.2 to 2.4 to 1 on the dark glass (WCAG 1.4.3 asks 4.5);
   now 5.1 or better at every ground the page scrolls behind it, both themes. */
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-top { min-block-size: var(--space-700); gap: var(--space-400); padding: 0 var(--space-700) 0 var(--space-200); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-spot--top { inline-size: var(--space-700); margin: 0; }
/* TAP HOME (his Send, 25 Nov 2026, review page lumi-tap-home, typing = side): on the first key Lumi steps out beside the
   window (site-guide.js homeLumi) and its top spot closes, gap and all, so the words slide left. */
.ccs-home[data-where="ai"] .ccs-home-spot--top { transition: inline-size var(--duration-flourish) var(--ease-emphasized), margin var(--duration-flourish) var(--ease-emphasized); }
.ccs-home[data-layout="stand"][data-where="ai"][data-typing][data-view] .ccs-home-spot--top { inline-size: 0; margin-inline-end: calc(var(--space-400) * -1); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-greet { font-size: var(--size-base); text-wrap: pretty; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-x { position: absolute; z-index: 1; margin: 0; inset-block-start: var(--space-400); inset-inline-end: var(--space-400); border: 1px solid rgb(from var(--color-text-primary) r g b / var(--alpha-500)); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-foot { min-block-size: var(--space-600); }

/* A thin line above the foot (his pick 16 Nov 2026, chat LUMI CHAT TAGS, "today's rows plus the line"): Lumi's answer
   and its one next question above it; the foot below. Every shape of the chat. */
.ccs-home .ccs-home-foot { margin: var(--space-100) var(--space-300) 0; padding-inline: 0; border-block-start: 1px solid rgb(from var(--color-text-primary) r g b / var(--alpha-400)); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-ai { justify-content: flex-start; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-note { flex: none; padding: 0 var(--space-300); font-size: var(--size-xs); text-align: center; }   /* 12 px, his "type a step up" pick 21 Nov 2026 (was 11) */
.ccs-home[data-layout="stand"][data-where="ai"][data-view] :is(.ccs-home-note, .ccs-home-ai-l) { color: var(--color-text-primary); }
/* The field's words before a question fade back (his words 26 Nov 2026, chat ASK AI POLISH: "it should be more faded"),
   a step in from the cursor so the cursor never touches the A ("there should be a little bit of a space"). text-indent
   moves the placeholder only; the cursor stays at the start of the field. */
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-ask-in::placeholder { color: var(--color-text-secondary); text-indent: var(--space-50); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view="phone"] { block-size: auto; max-block-size: 66dvh; padding-block-start: var(--space-500); }   /* the top padding is the grab bar's strip (below) */
/* The phone sheet, his note on his pick 22 Nov 2026 (chat MOBILE ASK AI, review page mobile-ask-door): "add the grabber but
   not clashing with chat area. and no close icon tap outside or swipe the window/sheet to close. lumi character behind
   the sheet, peeking out". The grab bar has its own strip above the field; a tap or a drag up makes the sheet tall
   (data-tall), a drag or swipe down makes it short again or closes it (assets/site-guide.js, grabSheet). Tall leaves room
   above it for Lumi's peek. The cross stays for a keyboard and a screen reader and shows only when it has focus; NN/g
   (Bottom Sheets, 2023) asks for a visible close too, and the tap outside and the swipe are the touch ones. */
.ccs-home[data-layout="stand"][data-where="ai"][data-view="phone"][data-tall] { block-size: calc(100dvh - var(--space-900)); max-block-size: calc(100dvh - var(--space-900)); }
.ccs-home[data-drag] { transition: none; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view="phone"] .ccs-home-top { padding-inline-end: var(--space-200); }   /* no cross to keep room for: the field takes the width */
.ccs-home[data-layout="stand"][data-where="ai"][data-view="phone"] .ccs-home-top:has(.ccs-home-x:focus-visible) { padding-inline-end: var(--space-700); }   /* the cross shows on focus: the field steps back so it covers nothing (2.4.11) */
.ccs-home-grab { display: none; }
.ccs-home[data-where="ai"][data-view="phone"] .ccs-home-grab { position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 2; display: grid; place-items: center; block-size: var(--space-500); padding: 0; border: 0; background: none; color: inherit; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.ccs-home-grab::before { content: ""; inline-size: var(--space-600); block-size: var(--space-100); border-radius: var(--chip-radius); background: var(--color-text-tertiary); }
.ccs-home-grab:focus-visible { outline: var(--border-focus); outline-offset: calc(var(--space-100) * -1); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view="phone"] .ccs-home-x:not(:focus-visible) { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view="phone"] .ccs-home-spot--top { position: absolute; inset-block-start: 0; inset-inline-start: var(--space-500); inline-size: calc(var(--space-800) + var(--space-200)); block-size: var(--space-500); aspect-ratio: auto; margin: 0; }   /* Lumi stands on this strip's bottom edge (site-guide.js homeLumi): 72 wide, so 48 of it peeks above the sheet; the strip itself stays inside the sheet */
/* stylelint-disable scale-unlimited/declaration-strict-value -- CanvasText is the system colour forced-colors mode requires */
@media (forced-colors: active) { .ccs-home-grab::before { background: CanvasText; } }
/* stylelint-enable scale-unlimited/declaration-strict-value */

/* Ask AI window, his picks 21 Nov 2026 (chat ASK AI MOCKUPS, review page ask-ai-mockups, sent with no note).
   1. The field sits on top beside Lumi, the greeting greyed in it, until the first question; then it drops under the
      newest message (site-guide.js aiField). 2. No cross on a computer: a click outside, Tab past the end or Escape
      closes it; a phone keeps the cross (no Escape key there). 3. The notice sits under Lumi's first answer and scrolls
      up with the chat. 4. A light 1 px line round the field at rest; typing shows the 2 px focus ring (WCAG 2.4.13).
      5. Type a step up: questions and "Or ask another AI" 14 px, the notice 12 px, both messages 16 px. */
.ccs-home[data-where="ai"][data-ask-top] .ccs-home-top .ccs-home-greet { display: none; }
.ccs-home[data-where="ai"][data-ask-top] .ccs-home-top .ccs-home-form { flex: 1 1 auto; min-inline-size: 0; }
.ccs-home[data-layout="stand"][data-where="ai"][data-ask-top][data-view] .ccs-home-top { padding-block-start: var(--space-200); }
.ccs-home[data-layout="stand"][data-where="ai"][data-ask-top][data-view="phone"] .ccs-home-x { inset-block-start: var(--space-500); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view="desk"] .ccs-home-x { display: none; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view="desk"] .ccs-home-top { padding-inline-end: var(--space-400); }
.ccs-home[data-layout="stand"][data-where="ai"][data-ask-top][data-view="desk"] .ccs-home-top { padding-inline-end: var(--space-200); }
.ccs-home-lognote { list-style: none; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-lognote .ccs-home-note { justify-content: flex-start; padding: 0 var(--space-100); text-align: start; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-form { box-shadow: inset 0 0 0 1px rgb(from var(--color-text-primary) r g b / var(--alpha-300)); }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-form:has(.ccs-ask-in:focus) { box-shadow: none; }
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-form:has(.ccs-ask-in:focus-visible) { outline: var(--border-focus); outline-offset: calc(var(--focus-ring-offset) * -1); }
.ccs-home[data-where="ai"] .ccs-ask-row { font-size: var(--size-sm); font-weight: var(--weight-medium); }
.ccs-home[data-where="ai"] .ccs-home-ai-l { font-size: var(--size-sm); }
.ccs-home[data-where="ai"] .ccs-home-msg { font-size: var(--size-base); }


/* Chat windows v2 (his picks 18 Nov 2026 on the review page lumi-chat-window-v2, spec-chat-window-v2.md).
   1. Retired 25 Nov 2026: the Sound and Send Lumi away switches are gone (chat SEND LUMI AWAY; Sound is the round
      button in the bottom-left corner). */
/* 2. The notice with an icon (Lucide info, ISC licence, drawn as a mask); volume-x is the sound button's off icon
      (.sg-snd-off). */
/* stylelint-disable-next-line no-duplicate-selectors -- chat windows v2 keeps its icon masks beside the rules that use them */
:root {
  --ccs-i-mute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z'/%3E%3Cline x1='22' x2='16' y1='9' y2='15'/%3E%3Cline x1='16' x2='22' y1='9' y2='15'/%3E%3C/svg%3E");
  --ccs-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}
.ccs-home-note::before {
  content: ""; flex: none; inline-size: var(--space-300); block-size: var(--space-300); background: currentColor;
  -webkit-mask: var(--ccs-i-info) center / contain no-repeat; mask: var(--ccs-i-info) center / contain no-repeat;
}
.ccs-home-note:not([hidden]) { display: flex; align-items: center; gap: var(--space-100); }
@media (forced-colors: active) { .ccs-home-note::before { background: CanvasText; } }
/* 3. "Or ask another AI": the real marks at full strength, Claude and Google in their own colours (the site's
      claude-colour.svg and gemini-colour.svg); ChatGPT, Perplexity and Grok are black and white brands. Never grey. */
/* stylelint-disable-next-line no-duplicate-selectors -- chat windows v2: the marks at full strength, beside the colour logo rules */
.ccs-home-mark { color: var(--color-text-primary); }
.ccs-home-mark :is(.ask-ai-mark--claude, .ask-ai-mark--gemini) { -webkit-mask: none; mask: none; background: none center / contain no-repeat; }
.ccs-home-mark .ask-ai-mark--claude { background-image: url("../../../assets/logos/claude-colour.svg"); }
.ccs-home-mark .ask-ai-mark--gemini { background-image: url("../../../assets/logos/gemini-colour.svg"); }
/* 4. The colour glow (his pick 18 Nov, option 3 with his note "it should only come on I guess when it replies and then
      goes away"): the Top skills chat card's own halo (work/lumi/card.html, .d-journey .halo), copied as it is. Two layers
      of the spectrum behind the window, a tight one (2 px out, 8 px blur, 70 percent) and a wide one (12 px out, 24 px blur,
      50 percent), at 60 percent overall, one turn every five laps of the spectrum, over a solid plate so the colour never
      shows through the glass. It shows while Lumi replies (data-busy, from the question to the last word) and fades out. */
@property --ccs-halo-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ccs-halo-spin { to { --ccs-halo-angle: 360deg; } }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern: a theme-varying custom property must be declared on each theme selector, not once at :root */
:root { --ccs-plate: var(--color-static-white); }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern, as above */
[data-theme="light"] { --ccs-plate: var(--color-static-white); }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern, as above */
[data-theme="dark"] { --ccs-plate: var(--brand-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ccs-plate: var(--brand-ink); } }
.ccs-halo { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.ccs-halo i { position: absolute; border-radius: inherit; opacity: calc(var(--ccs-glow-on, 0) * var(--alpha-600) * var(--ccs-part)); transition: opacity var(--duration-slow) var(--ease-default); background: conic-gradient(from var(--ccs-halo-angle), var(--ask-ai-spectrum-stops)); animation: ccs-halo-spin calc(var(--fx-spectrum-spin) * 5) linear infinite; }
.ccs-halo i:first-child { inset: calc(-1 * var(--space-50)); filter: blur(var(--space-200)); --ccs-part: var(--alpha-700); }
.ccs-halo i + i { inset: calc(-1 * var(--space-300)); filter: blur(var(--space-600)); --ccs-part: var(--alpha-500); }
.ccs-halo b { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--glass-tint-scrolled), var(--glass-tint-scrolled)), var(--ccs-plate); }
.ccs-home[data-busy] .ccs-halo { --ccs-glow-on: 1; }
/* The Ask AI window drops from the header: lift it over the header bar so the glow's top is not cut, and Lumi over it */
html[data-ccs-home-open="ai"] .ccs-home[data-where="ai"][data-fixed] { z-index: var(--z-overlay); }
html[data-ccs-home-open="ai"] .sg-cv[data-fixed][data-z="top"] { z-index: var(--z-modal); }   /* the next layer up: nothing sits between overlay and modal, so it rides just over the window */
@media (prefers-reduced-motion: reduce) { .ccs-halo i { animation: none; --ccs-halo-angle: 125deg; } }
[data-motion-paused="1"] .ccs-halo i { animation: none; }
@media (forced-colors: active) { .ccs-halo { display: none; } }

/* 5. The Ask AI window's glass (his picks 22 Nov 2026, chat LUMI GLASS, review page lumi-glass-live, a Send with no note):
      glass 4 "Lumi colour", outline 2 "thin light line", wobble 2 "settle on open". The window's own glass moves onto
      .ccs-glass, a layer behind the card that site-guide.js clips to Lumi's wobbling outline as the window opens (glassOpen);
      the white card and the words never move. The solid plate under the glow goes: the glow becomes a ring outside the
      window, so its colour never washes through the glass. Contrast measured 22 Nov over the hero, the work tiles and the
      lime footer, light and dark, phone to desktop: the words read 6.1 to 1 or better (WCAG 1.4.3 asks 4.5). */
.ccs-home[data-where="ai"].ccs-home-g { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; opacity: 1; }
/* The blur fix (his note 25 Nov 2026, chat SEND LUMI AWAY: "the ask ai chat window loads clear then loads the blur, blur
   should be instant"; his pick "fix", review page send-lumi-away). An opacity under 1 or a clip-path on the window makes
   it a backdrop root (MDN, backdrop-filter), so its glass blurred nothing until the fade ended. The window stays at full
   opacity (the rule above); its layers fade instead (a layer's own opacity never stops its own blur), and the shadow fades
   on ::before, which paints first at the layers' own -1, so it sits under the glow and the glass.
   The circle from a tap on Lumi is drawn on each layer too (clipKids in site-guide.js). */
.ccs-home[data-where="ai"].ccs-home-g::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--glass-shadow); pointer-events: none;
  opacity: 0; transition: opacity var(--duration-fast) var(--ease-exit);
}
.ccs-home[data-where="ai"].ccs-home-g > * { opacity: 0; transition: opacity var(--duration-fast) var(--ease-exit); }
.ccs-home[data-where="ai"][data-open].ccs-home-g::before,
.ccs-home[data-where="ai"][data-open].ccs-home-g > * { opacity: 1; transition: opacity var(--duration-base) var(--ease-entrance); }
@media (prefers-reduced-motion: reduce) { .ccs-home[data-where="ai"].ccs-home-g::before, .ccs-home[data-where="ai"].ccs-home-g > * { transition: none; } }
.ccs-home[data-where="ai"] > .ccs-halo b { display: none; }
.ccs-home[data-where="ai"] > .ccs-halo i { box-sizing: border-box; -webkit-mask: linear-gradient(rgb(0 0 0), rgb(0 0 0)) content-box exclude, linear-gradient(rgb(0 0 0), rgb(0 0 0)); mask: linear-gradient(rgb(0 0 0), rgb(0 0 0)) content-box exclude, linear-gradient(rgb(0 0 0), rgb(0 0 0)); }   /* mask luminance: only the ring outside the window shows */
.ccs-home[data-where="ai"] > .ccs-halo i:first-child { padding: var(--space-50); }
.ccs-home[data-where="ai"] > .ccs-halo i + i { padding: var(--space-300); }
.ccs-glass, .ccs-glass-rim { display: none; }
.ccs-home[data-where="ai"] > .ccs-glass {   /* inset -1px: lint-ok, the glass covers the window's 1 px see-through border (.ccs-home-g), so the light line drawn to the border box sits on it */
  display: block; position: absolute; inset: -1px; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none;
  background: color-mix(in srgb, var(--color-surface) 62%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur-frost)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-frost)) saturate(var(--glass-saturate));
}
/* Lumi's colours drifting slowly inside the glass: one slow sway every four turns of the spectrum. The colours are painted
   larger than the window and drift by their position, so the layer itself never runs past the window (overflow gate).
   Softer and blended (his words 26 Nov 2026, chat ASK AI POLISH: three blobs "a bit strong ... make it a bit more
   seamless"): a step lighter (alpha-500 to alpha-400), each colour spread wider and fading out further so they meet
   with no edge, a wash rather than three spots. */
.ccs-glass-wash {
  position: absolute; inset: 0; opacity: var(--alpha-400); pointer-events: none;
  background:
    radial-gradient(70% 80% at 15% 20%, var(--fx-spectrum-5), transparent),
    radial-gradient(70% 80% at 85% 25%, var(--fx-spectrum-6), transparent),
    radial-gradient(80% 70% at 50% 95%, var(--fx-spectrum-2), transparent);
  background-size: 140% 140%; background-position: 40% 55%;
  animation: ccs-glass-drift calc(var(--fx-spectrum-spin) * 4) var(--ease-default) infinite alternate;
}
@keyframes ccs-glass-drift { to { background-position: 60% 42%; } }
/* the thin light line round it, drawn on the same outline as the glass */
.ccs-home[data-where="ai"] > .ccs-glass-rim { display: block; position: absolute; inset: -1px; z-index: 0; inline-size: calc(100% + 2px); block-size: calc(100% + 2px); overflow: visible; pointer-events: none; }   /* lint-ok: on the border box, as the glass above */
.ccs-glass-rim path { fill: none; stroke-width: 1.25px; vector-effect: non-scaling-stroke; }   /* lint-ok: a hairline, his pick 2 "thin light line" as shown on the review page */
.ccs-glass-rim stop { stop-color: var(--color-static-white); }
/* Dark: the page under the glass is dimmed, so white words hold over the lime footer and bright tiles (without it the
   footer read 2.6 to 1 under the clear looks; measured 22 Nov). */
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern: the dark glass is declared on each theme selector */
[data-theme="dark"] .ccs-home[data-where="ai"] > .ccs-glass { background: color-mix(in srgb, var(--color-surface) 66%, transparent); -webkit-backdrop-filter: blur(var(--glass-blur-frost)) saturate(var(--glass-saturate)) brightness(0.7); backdrop-filter: blur(var(--glass-blur-frost)) saturate(var(--glass-saturate)) brightness(0.7); }   /* lint-ok: 0.7, the dim measured on the review page; no glass token dims below 1 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ccs-home[data-where="ai"] > .ccs-glass { background: color-mix(in srgb, var(--color-surface) 66%, transparent); -webkit-backdrop-filter: blur(var(--glass-blur-frost)) saturate(var(--glass-saturate)) brightness(0.7); backdrop-filter: blur(var(--glass-blur-frost)) saturate(var(--glass-saturate)) brightness(0.7); } }   /* lint-ok: as above */
@media (prefers-reduced-motion: reduce) { .ccs-glass-wash { animation: none; } }
[data-motion-paused="1"] .ccs-glass-wash { animation: none; }
@media (prefers-reduced-transparency: reduce) { .ccs-home[data-where="ai"] > .ccs-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-surface); } .ccs-home[data-where="ai"] > .ccs-glass-rim, .ccs-glass-wash { display: none; } }
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- Canvas and CanvasText are the system colours forced-colors mode requires */
@media (forced-colors: active) { .ccs-home[data-where="ai"] > :is(.ccs-glass, .ccs-glass-rim) { display: none; } .ccs-home[data-where="ai"].ccs-home-g { background: Canvas; border-color: CanvasText; } }

/* Chat look, "Stacked" (his picks 19 Nov 2026 on the review page lumi-chat-look, each sent with no note; spec-chat-look-site.md,
   Step A). Lumi's own chat and the Ask AI window: one light glass shell; inside it one white card holds Lumi's chat and the
   next question, and is the box that scrolls; "Or ask another AI", the switches and the field stay on the glass under it.
   Lumi's lines sit in a lavender to blue bubble; the visitor's question keeps its own look. The glow while Lumi replies is
   unchanged (rule 4 above). Stand and under only: the hero window (side) keeps its own look.
   The shell in dark keeps the site's strong tint (the 16 Nov rule above): the spec's 82 percent let the lime footer and
   light cards behind the chat's field lift its grey hint to 3.33 to 1 at Kind words (measured 19 Nov, kit test v12-grounds;
   WCAG 1.4.3 asks 4.5). Light keeps the spec's glass. */
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern: the bubble's mix and the shell differ per theme, declared on each theme selector */
:root { --ccs-bot-lav: 55%; --ccs-bot-blue: 45%; --ccs-shell: color-mix(in srgb, color-mix(in srgb, var(--color-text-primary) 5%, var(--color-surface)) 82%, transparent); }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern, as above */
[data-theme="light"] { --ccs-bot-lav: 55%; --ccs-bot-blue: 45%; --ccs-shell: color-mix(in srgb, color-mix(in srgb, var(--color-text-primary) 5%, var(--color-surface)) 82%, transparent); }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern, as above */
[data-theme="dark"] { --ccs-bot-lav: 38%; --ccs-bot-blue: 32%; --ccs-shell: var(--glass-tint-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ccs-bot-lav: 38%; --ccs-bot-blue: 32%; --ccs-shell: var(--glass-tint-strong); } }
.ccs-home:where([data-layout="stand"]).ccs-home-g,
.ccs-home:where([data-layout="stand"]) .ccs-home-g {
  background:
    linear-gradient(var(--ccs-shell), var(--ccs-shell)) padding-box,
    linear-gradient(180deg, var(--glass-edge-top), var(--glass-edge-bottom)) border-box;
}
.ccs-home:where([data-layout="stand"]) .ccs-home-scroll { flex: 0 1 auto; padding: var(--space-100) var(--space-200); border-radius: var(--radius-lg); background: var(--color-surface); }
.ccs-home:where([data-layout="stand"]) .ccs-home-scroll:has(> .ccs-home-log:empty):has(> .ccs-home-next:empty) { padding: 0; background: none; }   /* nothing in it yet: no empty white box */
.ccs-home:where([data-layout="stand"])[data-view="phone"] .ccs-home-scroll { margin-block-start: auto; }   /* phones: the card sits by the field, as the thread did */
.ccs-home:where([data-layout="stand"]) .ccs-home-msg--bot {
  padding: var(--space-100) var(--space-300);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pastel-lavender-300) var(--ccs-bot-lav), var(--color-surface)), color-mix(in srgb, var(--pastel-blue-300) var(--ccs-bot-blue), var(--color-surface)));   /* lint-ok: Lumi's bubble, his 19 Nov pick (spec-chat-look-site.md): the lavender to blue pair the case study's window uses; no semantic token names it */
}
@media (prefers-reduced-transparency: reduce) { .ccs-home:where([data-layout="stand"]).ccs-home-g, .ccs-home:where([data-layout="stand"]) .ccs-home-g { background: var(--color-surface); } }
/* stylelint-disable scale-unlimited/declaration-strict-value -- Canvas and CanvasText are the system colours forced-colors mode requires */
@media (forced-colors: active) {
  .ccs-home:where([data-layout="stand"]).ccs-home-g, .ccs-home:where([data-layout="stand"]) .ccs-home-g { background: Canvas; }
  .ccs-home:where([data-layout="stand"]) :is(.ccs-home-scroll, .ccs-home-msg--bot) { background: Canvas; border: 1px solid CanvasText; }
}
/* stylelint-enable scale-unlimited/declaration-strict-value */
/* The thinking dots on Lumi's lavender bubble: the speech bubble's own dots and bounce, but they never fade below 0.55, so
   at their faintest they keep 3 to 1 on the bubble (WCAG 1.4.11; at the speech bubble's 0.3 they read 2 to 1 here). */
.ccs-home:where([data-layout="stand"]) .ccs-home-msg--bot .sg-dots i { opacity: var(--alpha-600); animation-name: ccs-dot; }
@keyframes ccs-dot { 30% { opacity: 1; transform: translateY(calc(var(--space-100) * -1)); } 60% { opacity: var(--alpha-600); transform: none; } }
@media (prefers-reduced-motion: reduce) { .ccs-home:where([data-layout="stand"]) .ccs-home-msg--bot .sg-dots i { animation: none; } }

/* 6. The Ask AI window, lighter (his picks 22 Nov 2026, chat ASK AI UPLIFT, review page ask-ai-uplift, approved on the
      built page). Desktop window and phone sheet alike; Lumi's own chat keeps its look.
      - The glass and its light line sit on the window's border box: the line used to be drawn to the border box (440 wide)
        over glass inside the 1 px border (438), so it ran 2 px past the glass at the right and bottom.
      - Light at the top and bottom only, like iOS and Mac widgets: a bright edge with a soft sheen inside it, fading out down
        the sides (site-guide.js draws both to the window's outline); toned down in dark, his note.
      - No white box round the starter questions and no white card round the chat: the words sit on the glass and start on
        the divider's line, 12 px in, clear of Lumi and the field. Measured 22 Nov over the whole home page, light and dark:
        the words read 6.3 to 1 or better (WCAG 1.4.3 asks 4.5).
      - Questions 28 px a row with a mouse (a finger keeps the full 44), the field 44 px, the send button a light white
        circle round the ink arrow, "Or ask another AI" under the field in the chat, Lumi's answer plain on the glass. */
.ccs-glass-rim .ccs-glass-line { stroke-width: 1.5px; }   /* lint-ok: a hairline, a touch over the old 1.25 so the top light reads */
.ccs-glass-rim .ccs-glass-sheen { stroke-width: var(--space-300); filter: url(#ccs-glass-glow); }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern: the dark light is declared on each theme selector */
[data-theme="dark"] .ccs-glass-rim .ccs-glass-line { opacity: var(--alpha-600); }
[data-theme="dark"] .ccs-glass-rim .ccs-glass-sheen { opacity: var(--alpha-500); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ccs-glass-rim .ccs-glass-line { opacity: var(--alpha-600); }
  :root:not([data-theme="light"]) .ccs-glass-rim .ccs-glass-sheen { opacity: var(--alpha-500); }
}
.ccs-home[data-where="ai"] .ccs-home-scroll { padding: 0; border-radius: 0; background: none; }
.ccs-home[data-where="ai"] .ccs-home-next { padding: 0; }
.ccs-home[data-where="ai"][data-ask-top] .ccs-home-scroll { margin-block: var(--space-200); }   /* the start: clear of Lumi and the field above, the divider below */
.ccs-home[data-where="ai"] .ccs-home-log { padding: var(--space-200) var(--space-300) var(--space-300); }
.ccs-home[data-where="ai"] .ccs-home-lognote .ccs-home-note { padding-inline: 0; }
.ccs-home[data-where="ai"]:not([data-ask-top]) .ccs-home-next { padding-block-end: var(--space-200); }
@media (pointer: fine) { .ccs-home[data-where="ai"] .ccs-ask-row { min-block-size: calc(var(--btn-sm) - var(--space-100)); } }
.ccs-home[data-where="ai"] .ccs-home-form { min-block-size: calc(var(--space-700) - var(--space-100)); }
.ccs-home[data-where="ai"] .ccs-ask-in { block-size: calc(var(--touch-target-min) - var(--space-100)); caret-color: var(--color-text-primary); }
.ccs-home[data-where="ai"][data-ask-top] .ccs-home-spot--top { align-self: center; }
/* the send button: a light white circle in both themes round the ink arrow (black in light, white in dark), firmer once
   there is something to send. The arrow keeps 4.5 to 1 or better on it over the glass. */
.ccs-home[data-where="ai"] .ccs-ask-send { border-radius: var(--dot-radius); background-color: rgb(from var(--color-static-white) r g b / var(--alpha-500)); color: var(--color-text-primary); }
@media (hover: hover) { .ccs-home[data-where="ai"] .ccs-ask-send:hover { background-color: rgb(from var(--color-static-white) r g b / var(--alpha-600)); color: var(--color-text-primary); } }
.ccs-home[data-where="ai"] .ccs-ask-send[data-on], .ccs-home[data-where="ai"] .ccs-ask-send[data-on]:hover { background-color: rgb(from var(--color-static-white) r g b / var(--alpha-700)); color: var(--color-text-primary); }
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern, as above */
[data-theme="dark"] .ccs-home[data-where="ai"] .ccs-ask-send[data-on] { background-color: rgb(from var(--color-static-white) r g b / var(--alpha-400)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ccs-home[data-where="ai"] .ccs-ask-send[data-on] { background-color: rgb(from var(--color-static-white) r g b / var(--alpha-400)); } }
/* the chat: the field sits right under the answer and "Or ask another AI" is the window's footer, with no line */
.ccs-home[data-where="ai"]:not([data-ask-top]) .ccs-home-col { gap: var(--space-100); }
.ccs-home[data-where="ai"]:not([data-ask-top]) .ccs-home-card { display: contents; }
.ccs-home[data-where="ai"]:not([data-ask-top]) .ccs-home-top { margin-block-end: var(--space-100); }
.ccs-home[data-where="ai"]:not([data-ask-top]) .ccs-home-form { order: 1; }
.ccs-home[data-where="ai"]:not([data-ask-top]) .ccs-home-foot { order: 2; margin-inline: var(--space-300); padding: 0; border-block-start: 0; }
.ccs-home[data-where="ai"] .ccs-home-msg--bot { max-inline-size: 100%; padding-inline: 0; background: none; }
@media (forced-colors: active) { .ccs-home[data-where="ai"] :is(.ccs-home-scroll, .ccs-home-msg--bot) { border: 0; } }

/* 7. The Ask AI field and button (his picks 23 Nov 2026, chat ASK AI INPUT, review page ask-ai-input, a Send with no note).
      - The field's edge stays a hairline: the light 1 px line at rest; with focus it stays 1 px and turns full ink, black in
        light and white in dark, and the cursor follows it (it was a 2 px ring, lime in dark). An outline, so forced colours
        keeps it. WCAG 2.2 AA asks for a visible focus (2.4.7) whose changed pixels hold 3 to 1 (1.4.11); ink on the glass
        holds far more. The 2 px area is 2.4.13, AAA, which the site does not claim.
      - The send button has no circle and shows only once there is something to send, as the return key (Lucide
        corner-down-left, drawn as a mask so it takes the ink). Hidden with visibility, so an empty field's button is out of
        the Tab order too, and its space stays, so the words never shift. Enter still sends from an empty-looking field's
        keyboard, and a phone's keyboard shows its own Send key (enterkeyhint="send").
      - The header button carries Lumi where the sparkle was, 24 px, cropped tight (critter.js Critter.icon, drawn by
        a script in index.html paints it once critter.js is in, before the header shows), 10 px from the button's edge and 12 px after the words. Sent away, the live Lumi takes the
        spot, so the still steps aside. */
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-form:has(.ccs-ask-in:focus),
.ccs-home[data-layout="stand"][data-where="ai"][data-view] .ccs-home-form:has(.ccs-ask-in:focus-visible) {
  box-shadow: none;
  outline: 1px solid var(--color-text-primary);
  outline-offset: -1px;
}
.ccs-ask-ret { display: none; }
.ccs-home[data-where="ai"] .ccs-ask-send,
.ccs-home[data-where="ai"] .ccs-ask-send[data-on] {
  background-color: transparent;
  color: var(--color-text-primary);
  transition: opacity var(--duration-fast) var(--ease-default), visibility var(--duration-fast) var(--ease-default), background-color var(--duration-fast) var(--ease-default);
}
/* stylelint-disable-next-line no-duplicate-selectors -- theme-pin pattern: the dark send circle (block 6) is cleared on each theme selector */
[data-theme="dark"] .ccs-home[data-where="ai"] .ccs-ask-send[data-on] { background-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ccs-home[data-where="ai"] .ccs-ask-send[data-on] { background-color: transparent; } }
.ccs-home[data-where="ai"] .ccs-ask-send:not([data-on]) { visibility: hidden; opacity: 0; }
@media (hover: hover) {
  .ccs-home[data-where="ai"] .ccs-ask-send[data-on]:hover { background-color: rgb(from var(--color-text-primary) r g b / var(--alpha-200)); color: var(--color-text-primary); }
}
.ccs-home[data-where="ai"] .ccs-ask-send > :is(svg, i) { display: none; }
.ccs-home[data-where="ai"] .ccs-ask-send > .ccs-ask-ret {
  display: block;
  inline-size: var(--space-400);
  block-size: var(--space-400);
  background: currentColor;
  -webkit-mask: url("../../../assets/icons/corner-down-left.svg") center / contain no-repeat;
  mask: url("../../../assets/icons/corner-down-left.svg") center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) { .ccs-home[data-where="ai"] .ccs-ask-send { transition: none; } }
[id="site-header"] .header-ask[data-lumi] { padding-inline: var(--space-250) var(--space-300); }
.header-ask > .ask-ai-lumi { display: none; }
.header-ask[data-lumi] > .ask-ai-lumi { display: block; flex: none; inline-size: var(--space-500); block-size: var(--space-500); background: center / contain no-repeat; pointer-events: none; }
.header-ask[data-lumi] > [data-lucide="sparkles"] { display: none; }
/* stylelint-disable scale-unlimited/declaration-strict-value -- CanvasText is the system colour forced-colors mode requires */
@media (forced-colors: active) { .ccs-home[data-where="ai"] .ccs-ask-send > .ccs-ask-ret { background: CanvasText; } }
/* stylelint-enable scale-unlimited/declaration-strict-value */
