/* The public landing page (welcome.html), in the Core Purpose CVI: black and white, square corners,
   IBM Plex Mono for display and labels, Inter for reading, hairlines for structure, and the one
   copper signal for the thing that matters (the approved key insight, the human decision). */

.welcome { background: var(--bg); color: var(--fg); font-family: var(--font-body); margin: 0; }
.welcome a { color: inherit; }
.welcome h1, .welcome h2, .welcome h3 { font-family: var(--font-mono); font-weight: 400; letter-spacing: .01em; }
.welcome code, .welcome pre { font-family: var(--font-mono); }
.welcome .skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; background: #fff; color: #000; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.welcome .skip-link:focus { top: 12px; }

/* --- Top bar: sits on the black hero --- */
.w-top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px clamp(16px, 4vw, 48px); color: #fff; }
.w-wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font: 400 12px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.w-mark { width: 30px; height: 30px; flex: none; }
.w-slash { margin: 0 .55em; color: #8a8a8a; }
.w-nav { display: flex; align-items: center; gap: 28px; font: 400 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.w-nav a { text-decoration: none; color: #b8b8b8; }
.w-nav a:hover, .w-nav a:focus-visible { color: #fff; }
.w-nav .w-signin { white-space: nowrap; color: #fff; border: 1px solid #6b6b6b; padding: 10px 16px; }
.w-nav .w-signin:hover { background: #fff; color: #000; }

/* --- Hero --- */
.w-hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(100vh, 920px); padding: 140px clamp(16px, 4vw, 48px) 88px; background: #000; color: #fff; overflow: hidden; }
.w-hero::before { content: ''; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(90deg, #404040 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.w-hero > * { position: relative; z-index: 1; }
.w-eyebrow { margin: 0; font: 400 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; }
.w-eyebrow--ink { color: var(--fg-secondary); }
.w-hero h1 { margin: 26px 0 28px; font-size: clamp(42px, 5.6vw, 84px); line-height: 1.02; letter-spacing: 0; }
.w-lede { max-width: 34em; margin: 0; color: #b8b8b8; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.w-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid #fff; background: #fff; color: #000 !important; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.w-btn:hover { background: transparent; color: #fff !important; }
.w-btn--ghost { background: transparent; color: #fff !important; border-color: #6b6b6b; }
.w-btn--ghost:hover { border-color: #fff; }
.w-btn--light { margin-top: 40px; }
.w-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 40em; margin-top: 32px; }
.w-seg-label { margin-right: 6px; color: #8a8a8a; font: 400 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-seg button { min-height: 32px; padding: 0 12px; border: 1px solid #333; background: transparent; color: #b8b8b8; font: 400 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.w-seg button:hover { border-color: #8a8a8a; color: #fff; }
.w-seg button[aria-pressed="true"] { border-color: #fff; background: #fff; color: #000; }
.w-seg button:focus-visible, .w-use:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--fg); border-left: 1px solid var(--hairline); }
.w-uses li { display: flex; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.w-use { display: flex; flex-direction: column; width: 100%; padding: 24px 24px 22px; border: 0; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.w-use > span { display: block; }
.w-use:hover, .w-use[aria-pressed="true"] { background: var(--surface); }
.w-use-go { margin-top: 16px; color: var(--fg-secondary); font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-use:hover .w-use-go { color: var(--fg); }
.w-use[aria-pressed="true"] .w-use-go { color: var(--signal); }
.w-use-area { margin: 0 0 16px; color: var(--fg-secondary); font: 400 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.w-use-key { flex: 1; margin: 0 0 18px; padding-left: 12px; border-left: 2px solid var(--signal); font: 400 18px/1.4 var(--font-mono); }
.w-use-src { margin: 0; color: var(--fg-secondary); font-size: 13px; }
.w-notice { max-width: 34em; margin-top: 28px; padding: 12px 14px; border-left: 2px solid var(--signal); background: #161616; color: #fff; font-size: 14px; }

/* --- The insight board figure --- */
.w-board { margin: 0; border: 1px solid #2a2a2a; background: #0a0a0a; }
.w-board-head { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #2a2a2a; color: #8a8a8a; font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-lane { display: flex; flex-direction: column; gap: 10px; min-height: 340px; padding: 16px 14px 20px; border-right: 1px solid #1c1c1c; }
.w-lane:last-child { border-right: 0; }
.w-lane-label { margin: 0 0 6px; color: #8a8a8a; font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-src, .w-frag, .w-cluster, .w-key { opacity: 0; animation: w-in .6s ease-out forwards; }
.w-src { padding: 10px; border: 1px solid #333; font-size: 12px; color: #d6d6d6; }
.w-id { display: block; margin-bottom: 4px; color: #8a8a8a; font: 400 10px/1 var(--font-mono); letter-spacing: .1em; }
.w-frag { padding: 8px 10px; border-left: 1px solid #555; color: #c8c8c8; font-size: 12px; line-height: 1.45; }
.w-frag--dim { color: #8a8a8a; border-left-color: #333; }
.w-cluster { padding: 12px; border: 1px solid #555; }
.w-cluster-name { margin: 0 0 4px; font: 400 13px/1.3 var(--font-mono); color: #fff; }
.w-cluster-meta { margin: 0 0 14px; color: #8a8a8a; font-size: 11px; }
.w-dots { display: flex; gap: 6px; }
.w-dots i { width: 9px; height: 9px; border: 1px solid #bbb; border-radius: 50%; }
.w-key { padding: 14px; border: 1px solid var(--signal); border-left-width: 3px; background: #140c07; }
.w-key-id { margin: 0 0 10px; color: #c8693a; font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.w-key-text { margin: 0 0 12px; color: #fff; font-size: 14px; line-height: 1.45; }
.w-key-meta { margin: 0; color: #9a9a9a; font: 400 10px/1.5 var(--font-mono); }
.w-flow { display: block; width: 100%; height: 3px; }
.w-flow path { stroke: var(--signal); stroke-width: 6; stroke-dasharray: 40 360; animation: w-flow 4.5s linear infinite; }

.w-lane:nth-child(1) > :nth-child(2) { animation-delay: .1s; } .w-lane:nth-child(1) > :nth-child(3) { animation-delay: .2s; } .w-lane:nth-child(1) > :nth-child(4) { animation-delay: .3s; }
.w-lane:nth-child(2) > :nth-child(2) { animation-delay: .6s; } .w-lane:nth-child(2) > :nth-child(3) { animation-delay: .75s; } .w-lane:nth-child(2) > :nth-child(4) { animation-delay: .9s; } .w-lane:nth-child(2) > :nth-child(5) { animation-delay: 1.05s; }
.w-lane:nth-child(3) > :nth-child(2) { animation-delay: 1.5s; }
.w-lane:nth-child(4) > :nth-child(2) { animation-delay: 2.1s; }

@keyframes w-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes w-flow { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }

/* --- Sections --- */
.w-section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--hairline); }
.w-section--surface { background: var(--surface); }
.w-section-head { max-width: 760px; margin-bottom: 56px; }
.w-section h2 { margin: 18px 0 18px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; }
.w-section-head > p:last-child, .w-agents-copy > p:not(.w-eyebrow) { margin: 0; max-width: 40em; color: var(--fg-secondary); font-size: 17px; line-height: 1.6; }

.w-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--fg); }
.w-steps li { padding: 24px 28px 8px 0; margin-right: 28px; border-right: 1px solid var(--hairline); }
.w-steps li:last-child { border-right: 0; margin-right: 0; }
.w-step-n { display: block; color: var(--fg-secondary); font: 400 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.w-steps h3 { margin: 18px 0 12px; font-size: 22px; }
.w-steps p { margin: 0; color: var(--fg-secondary); font-size: 15px; line-height: 1.6; }
.w-step--key .w-step-n, .w-step--key h3 { color: var(--signal); }

.w-loop { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--fg); background: var(--bg); }
.w-loop-step { position: relative; padding: 22px 18px 26px; border-right: 1px solid var(--hairline); }
.w-loop-step:nth-child(6) { border-right: 0; }
.w-loop-step:not(:nth-child(6))::after { content: '→'; position: absolute; top: 18px; right: -9px; z-index: 1; padding: 0 2px; background: var(--bg); color: var(--fg-secondary); font: 400 13px/1 var(--font-mono); }
.w-loop-step p { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.w-loop-step--signal { box-shadow: inset 0 3px 0 var(--signal); }
.w-loop-step--signal .w-step-n { color: var(--signal); }
.w-loop-return { grid-column: 1 / -1; display: flex; justify-content: center; padding: 12px; border-top: 1px dashed var(--field-border); color: var(--fg-secondary); font: 400 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 48px 0 0; }
.w-facts dt { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.w-facts dd { margin: 10px 0 0; color: var(--fg-secondary); font-size: 15px; line-height: 1.55; }

.w-agents { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.w-tools { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.w-tools li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.w-tools code { font-size: 13px; }
.w-tools span { color: var(--fg-secondary); font: 400 10px/1.8 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-tools .w-tool-write { color: var(--signal); }
.w-term { margin: 0; border: 1px solid #2a2a2a; background: #000; color: #e6e6e6; }
.w-term-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #2a2a2a; }
.w-term-head > span { width: 8px; height: 8px; border: 1px solid #555; border-radius: 50%; }
.w-term-head p { margin: 0 0 0 auto; color: #8a8a8a; font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.w-term pre { margin: 0; padding: 22px 20px 26px; overflow-x: auto; font-size: 13px; line-height: 1.65; white-space: pre; }
.t-wrap { display: inline-block; max-width: min(44ch, calc(100% - 10ch)); vertical-align: top; white-space: normal; }
.t-dim { color: #8a8a8a; } .t-call { color: #fff; font-weight: 500; } .t-ok { color: #fff; border-bottom: 1px solid var(--signal); }
.t-quote { color: #c8c8c8; } .t-signal { color: #c8693a; }

.w-principle { position: relative; padding: clamp(80px, 11vw, 150px) clamp(16px, 4vw, 48px); background: #000; color: #fff; overflow: hidden; }
.w-principle::before { content: ''; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(90deg, #404040 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.w-principle > * { position: relative; }
.w-principle h2 { max-width: 18em; margin: 26px 0 0; font-size: clamp(30px, 4vw, 58px); line-height: 1.1; }
.w-fineprint { max-width: 38em; margin: 22px 0 0; color: #8a8a8a; font-size: 14px; }

.w-foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 48px); border-top: 1px solid #2a2a2a; background: #000; color: #8a8a8a; font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

.welcome a:focus-visible, .welcome #main:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (max-width: 1080px) {
  .w-hero, .w-agents { grid-template-columns: 1fr; }
  .w-hero { padding-top: 120px; }
  .w-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .w-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .w-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-loop-step:nth-child(3) { border-right: 0; }
  .w-loop-step:nth-child(3)::after { display: none; }
  .w-loop-step:nth-child(-n+3) { border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 720px) {
  .w-nav a:not(.w-signin) { display: none; }
  .w-wordmark > span { font-size: 10px; letter-spacing: .14em; }
  .w-lanes { grid-template-columns: 1fr 1fr; }
  .w-lane { min-height: 0; border-bottom: 1px solid #1c1c1c; }
  .w-steps, .w-facts, .w-uses { grid-template-columns: 1fr; }
  .w-steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 24px; }
  .w-loop { grid-template-columns: 1fr; }
  .w-loop-step { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .w-loop-step::after { display: none; }
  .w-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .w-src, .w-frag, .w-cluster, .w-key { opacity: 1; animation: none; }
  .w-flow path { animation: none; }
}

/* --- Pause control for the moving sections (they auto-play, so WCAG 2.2.2 wants a stop) --- */
.w-anim-toggle { min-height: 30px; padding: 0 12px; border: 1px solid var(--field-border); background: var(--bg); color: var(--fg); font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.w-anim-toggle:hover { background: var(--surface); }
.w-anim-toggle--dark { border-color: #555; background: transparent; color: #fff; }
.w-anim-toggle--dark:hover { background: #1c1c1c; }
.w-anim-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* --- The clustering board --- */
.w-cb-wrap { border: 1px solid var(--fg); background: var(--bg); }
.w-cb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.w-cb-stages { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font: 400 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-secondary); }
.w-cb-stages li::before { content: '○ '; }
.w-cb-stages li.is-done { color: var(--fg); }
.w-cb-stages li.is-done::before { content: '● '; }
.w-cb-stages li.is-current { color: var(--signal); }
.w-cb-scroll { overflow-x: auto; }
.w-cb { position: relative; min-width: 760px; height: 460px; background-image: radial-gradient(var(--hairline) 1px, transparent 1px); background-size: 22px 22px; }
.w-cb-frame { position: absolute; border: 1px dashed var(--field-border); opacity: 0; transition: opacity .6s ease, border-color .6s ease; }
.w-cb-frame[data-frame="a"] { left: 3%; top: 7%; width: 33%; height: 68%; }
.w-cb-frame[data-frame="b"] { left: 40%; top: 7%; width: 27%; height: 44%; }
.w-cb-frame[data-frame="c"] { left: 40%; top: 55%; width: 27%; height: 39%; }
.w-cb-name { margin: 0; padding: 10px 12px 2px; font: 400 12px/1.3 var(--font-mono); }
.w-cb-count { margin: 0; padding: 0 12px; color: var(--fg-secondary); font-size: 11px; }
.w-cb:not([data-stage="0"]) .w-cb-frame { opacity: 1; }
.w-cb[data-stage="2"] .w-cb-frame[data-frame="a"], .w-cb[data-stage="3"] .w-cb-frame[data-frame="a"] { border: 1px solid var(--signal); }
.w-cb-note { position: absolute; z-index: 1; width: 24%; margin: 0; padding: 8px 10px; border: 1px solid var(--field-border); background: var(--bg); color: var(--fg); font-size: 12px; line-height: 1.4; transition: left .9s cubic-bezier(.2,.7,.2,1), top .9s cubic-bezier(.2,.7,.2,1), transform .9s ease; }
.w-cb-note[data-note="0"] { left: 55%; top: 63%; transform: rotate(-2deg); }
.w-cb-note[data-note="1"] { left: 8%; top: 30%; transform: rotate(1.5deg); }
.w-cb-note[data-note="2"] { left: 71%; top: 12%; transform: rotate(-1deg); }
.w-cb-note[data-note="3"] { left: 28%; top: 76%; transform: rotate(2deg); }
.w-cb-note[data-note="4"] { left: 43%; top: 22%; transform: rotate(-2.5deg); }
.w-cb-note[data-note="5"] { left: 14%; top: 6%; transform: rotate(1deg); }
.w-cb-note[data-note="6"] { left: 73%; top: 44%; transform: rotate(-1.5deg); }
.w-cb:not([data-stage="0"]) .w-cb-note { transform: none; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="0"] { left: 5.5%; top: 21%; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="1"] { left: 5.5%; top: 38%; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="2"] { left: 5.5%; top: 55%; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="3"] { left: 41.5%; top: 21%; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="4"] { left: 41.5%; top: 35%; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="5"] { left: 41.5%; top: 68%; }
.w-cb:not([data-stage="0"]) .w-cb-note[data-note="6"] { left: 41.5%; top: 81%; }
.w-cb-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .6s ease .3s; }
.w-cb-link path { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.w-cb-key { position: absolute; left: 71%; top: 18%; width: 26%; padding: 14px; border: 1px dashed var(--signal); border-left: 3px solid var(--signal); background: var(--bg); opacity: 0; transform: translateX(12px); transition: opacity .6s ease .3s, transform .6s ease .3s, border-style .3s; }
.w-cb-key .w-key-id { color: var(--signal); }
.w-cb-key .w-key-text { margin: 0; color: var(--fg); font: 400 15px/1.4 var(--font-mono); }
.w-cb[data-stage="2"] .w-cb-link, .w-cb[data-stage="3"] .w-cb-link { opacity: 1; }
.w-cb[data-stage="2"] .w-cb-key, .w-cb[data-stage="3"] .w-cb-key { opacity: 1; transform: none; }
.w-cb[data-stage="3"] .w-cb-key { border-style: solid; background: color-mix(in srgb, var(--signal) 8%, var(--bg)); }
.w-cb[data-stage="2"] .w-cb-state::after { content: 'draft · review'; }
.w-cb[data-stage="3"] .w-cb-state::after { content: 'approved'; }
.w-cb-caption { margin: 0; padding: 12px 16px; border-top: 1px solid var(--hairline); color: var(--fg-secondary); font-size: 13px; }

/* --- Project management --- */
.w-pm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--fg); }
.w-pm li { padding: 22px 24px 24px 0; margin-right: 24px; border-bottom: 1px solid var(--hairline); }
.w-pm-term { margin: 0 0 10px; font: 500 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.w-pm li p:last-child { margin: 0; color: var(--fg-secondary); font-size: 15px; line-height: 1.55; }
.w-life { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 44px 0 0; padding: 0; list-style: none; font: 400 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.w-life li { display: flex; align-items: center; padding: 10px 14px; border: 1px solid var(--fg); }
.w-life li + li { margin-left: 18px; position: relative; }
.w-life li + li::before { content: '→'; position: absolute; left: -15px; color: var(--fg-secondary); }
.w-life .w-gate { border-color: var(--signal); color: var(--signal); }
.w-life .w-gate::after { content: ' ◆'; margin-left: 6px; }
.w-life-note { margin: 16px 0 0; color: var(--fg-secondary); font-size: 14px; }

/* --- Chats --- */
.w-chats { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.w-chats-copy > p:not(.w-eyebrow):not(.w-platforms-label) { margin: 0; max-width: 40em; color: var(--fg-secondary); font-size: 17px; line-height: 1.6; }
.w-platforms-label { margin: 32px 0 12px; font: 400 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.w-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-platforms li { padding: 8px 12px; border: 1px solid var(--field-border); font: 400 12px/1 var(--font-mono); }
.w-platforms li:last-child { border-style: dashed; color: var(--fg-secondary); }
.w-chat-cycle { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 28px 0 0; padding: 0; list-style: none; color: var(--fg-secondary); font: 400 11px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.w-chat-cycle li + li::before { content: '→'; margin: 0 10px; }
.w-chat-cycle li:last-child::after { content: '↺'; margin-left: 10px; color: var(--signal); }
.w-chat-cycle-signal { color: var(--signal); }
.w-chat { margin: 0; border: 1px solid var(--fg); background: var(--bg); }
.w-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #000; color: #fff; }
.w-chat-head p { margin: 0; font: 400 13px/1 var(--font-mono); letter-spacing: .04em; }
.w-chat-log { display: flex; flex-direction: column; gap: 18px; min-height: 470px; margin: 0; padding: 22px 18px; list-style: none; }
.w-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; transition: opacity .45s ease, transform .45s ease; }
.w-chat-log[data-anim] .w-msg { opacity: 0; transform: translateY(8px); }
.w-chat-log[data-anim] .w-msg.is-shown { opacity: 1; transform: none; }
.w-msg p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.w-msg-who { font-weight: 600; font-size: 13px !important; }
.w-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--field-border); font: 500 12px/1 var(--font-mono); }
.w-avatar--b { background: var(--surface); }
.w-avatar--bot { border-color: #000; background: #000; color: #fff; font-size: 10px; }
.w-badge { margin-left: 6px; padding: 2px 5px; border: 1px solid var(--field-border); color: var(--fg-secondary); font: 400 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.w-msg--bot div { padding-left: 12px; border-left: 2px solid var(--hairline); }
.w-msg-quote { color: var(--fg-secondary); }
.w-msg-src { margin-left: 6px; font: 400 11px/1 var(--font-mono); color: var(--fg); }
.w-pill { display: inline-block; margin-left: 6px; padding: 3px 7px; border: 1px solid var(--signal); color: var(--signal); font: 400 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.w-pill--ok { border-color: var(--fg); background: var(--fg); color: var(--bg); }

@media (max-width: 1080px) {
  .w-pm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-chats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .w-pm { grid-template-columns: 1fr; }
  .w-pm li { margin-right: 0; }
  .w-chat-log { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .w-cb-note, .w-cb-frame, .w-cb-key, .w-cb-link, .w-msg { transition: none; }
}
