/* Standalone additions. The existing site and its Tetris renderer keep their styles. */
.work-showcase { --work-ink: #f2f1ff; --work-dim: #aca6c5; --work-cyan: #67e8f9; --work-purple: #c084fc; color: var(--work-ink); background: #060010; font-family: Inter, system-ui, sans-serif; }
.work-showcase *, .peanut-host * { box-sizing: border-box; }
.work-shell { width: min(1184px, calc(100% - 48px)); margin-inline: auto; }
.work-showcase [hidden], .peanut-host [hidden] { display: none !important; }
.work-showcase a, .work-showcase button, .peanut-host button { -webkit-tap-highlight-color: transparent; }
.work-showcase a:focus-visible, .work-showcase button:focus-visible, .peanut-host button:focus-visible, .work-hero-link:focus-visible { outline: 2px solid #67e8f9; outline-offset: 5px; }
.work-jumps { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid #ffffff18; }
.work-jumps > div { display: flex; flex-wrap: wrap; gap: 24px; }
.work-jumps a { color: #ddd6ee; text-decoration: none; font-size: .82rem; padding: 10px 0; }
.work-jumps a:hover, .work-text-link:hover, .work-footer a:hover { color: var(--work-cyan); }
.work-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--work-cyan); font: 500 .68rem/1.6 'Space Grotesk', system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 14px; }
.work-jumps .work-eyebrow { margin: 0; }
.work-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 10px #67e8f96a; }
.work-section { padding: 84px 0 0; scroll-margin-top: 85px; }
.work-section + .work-section { padding-top: 112px; }
.work-heading { margin-bottom: 38px; }
.work-heading h2 { font: 700 clamp(3.5rem, 8vw, 7rem)/.98 'Outfit', Inter, sans-serif; letter-spacing: -.05em; margin: 0 0 24px; color: #f2f1ff; }
.work-period { color: var(--work-cyan); }
.work-outline { color: #cab9e5; }
@supports (-webkit-text-stroke: 1px #cab9e5) { .work-outline { color: transparent; -webkit-text-stroke: 1px #cab9e5; } }
.work-hook { max-width: 820px; color: #c4bfd4; font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.75; margin: 0; }
.work-hook em { color: var(--work-cyan); font-style: normal; }
.work-arc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0 0; margin: 0; list-style: none; }
.work-arc li { border-top: 1px solid #a855f740; padding-top: 16px; font-size: .77rem; color: #c8c1d8; }
.work-arc span { color: var(--work-purple); font: .66rem monospace; margin-right: 8px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { min-width: 0; border: 1px solid #b8a3e529; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg, #ffffff05, #a855f704); transition: border-color .25s, transform .25s; scroll-margin-top: 90px; }
@media (hover: hover) { .work-card:hover { transform: translateY(-4px); border-color: #a855f780; } }
.work-card-production { border-color: #67e8f944; }
.work-card-copy { padding: 27px; }
.work-card h3, .work-feature h3 { font: 600 clamp(1.25rem, 2vw, 1.55rem)/1.25 'Space Grotesk', Inter, sans-serif; margin: 0 0 15px; letter-spacing: -.035em; color: #fff; }
.work-card-copy > p:not(.work-eyebrow):not(.work-fine-print), .work-feature-copy > p:not(.work-eyebrow):not(.work-fine-print):not(.work-aside) { margin: 0; color: var(--work-dim); font-size: .91rem; line-height: 1.8; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 22px 0 0; list-style: none; }
.work-tags li { border: 1px solid #b8a3e522; border-radius: 5px; background: #b8a3e507; color: #c1b6d8; font-size: .64rem; padding: 5px 9px; }
.work-comparison { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; font-size: .68rem; color: #aaa0bd; }
.work-comparison b { display: block; color: var(--work-cyan); font: 600 1.15rem 'Space Grotesk', sans-serif; }
.work-comparison > span:first-child b { color: #c4b5fd; }
.work-text-link { display: inline-block; margin-top: 23px; color: #d8b4fe; font-size: .75rem; text-decoration: none; }
.work-fine-print { color: #9e94b0; font-size: .69rem; line-height: 1.7; margin: 18px 0 0; }
.work-media { position: relative; aspect-ratio: 16 / 9; background: #0a0713; overflow: hidden; border-bottom: 1px solid #b8a3e520; isolation: isolate; }
.work-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s; background: #0a0713; }
.work-media[data-ready="true"] video { opacity: 1; }
.work-media[data-ready="true"] .work-placeholder { visibility: hidden; }
.work-media-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 15px; background: linear-gradient(transparent, #080312e6); }
.work-media-status { font: .59rem/1.4 'Space Grotesk', system-ui, sans-serif; color: #c2bbd4; letter-spacing: .035em; }
.work-play { flex: 0 0 auto; min-height: 36px; min-width: 64px; border: 1px solid #ddd6fe55; border-radius: 5px; padding: 6px 10px; background: #0a0713e8; color: #f5f3ff; font: 500 .65rem Inter, sans-serif; cursor: pointer; }
.work-play:hover { border-color: var(--work-cyan); color: var(--work-cyan); }
.work-placeholder { position: absolute; inset: 0; background-image: linear-gradient(#c084fc08 1px, transparent 1px), linear-gradient(90deg, #c084fc08 1px, transparent 1px), radial-gradient(ellipse at 30% 60%, #6d28d924, transparent 65%); background-size: 24px 24px, 24px 24px, auto; }
.work-preview-type { position: absolute; left: 7%; bottom: 22%; z-index: 1; }
.work-preview-type > span { display: block; color: #ac91c8; font: .55rem/1.7 monospace; letter-spacing: .13em; margin-bottom: 9px; }
.work-preview-type strong { color: #e4d8f2; font: 600 clamp(1.1rem, 2.25vw, 1.9rem)/1.12 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.work-preview-note { position: absolute; top: 16px; left: 18px; color: #c0b5d2; font: .57rem/1.4 monospace; letter-spacing: .04em; border: 1px solid #b8a3e533; padding: 5px 7px; border-radius: 4px; }
.work-tetris-board { position: absolute; right: 10%; top: 17%; height: 65%; width: 21%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(8, 1fr); gap: 3px; border-bottom: 1px solid #67e8f940; }
.work-tetris-board i { background: #9b51df66; border: 1px solid #c084fc66; grid-row: 8; }
.work-tetris-board i:nth-child(5), .work-tetris-board i:nth-child(6), .work-tetris-board i:nth-child(7) { grid-row: 7; }
.work-tetris-board i:nth-child(8), .work-tetris-board i:nth-child(9), .work-tetris-board i:nth-child(10) { grid-row: 6; background: #22d3ee55; border-color: #67e8f966; }
.work-tetris-board i:nth-child(11), .work-tetris-board i:nth-child(12) { grid-row: 5; }
.work-tetris-board b { grid-column: 4; grid-row: 1 / 5; background: #67e8f9; box-shadow: 0 0 20px #22d3ee55; transform: translateY(30%); }
.work-kart-map { position: absolute; right: 7%; top: 23%; width: 32%; aspect-ratio: 1; border: 1px solid #c084fc55; border-radius: 20%; transform: rotate(-12deg); }
.work-kart-map::before { content: ''; position: absolute; inset: 24%; border: 1px solid #c084fc55; border-radius: 20%; }
.work-kart { position: absolute; width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 18px currentColor; }
.work-kart-one { left: 12%; top: 15%; background: #67e8f9; color: #67e8f9; }
.work-kart-two { right: 10%; bottom: 12%; background: #e879f9; color: #e879f9; }
.work-kart-map i, .work-kart-map b { position: absolute; width: 64%; height: 34%; border-top: 1px dashed #67e8f9; border-right: 1px dashed #67e8f9; top: 19%; left: 19%; }
.work-kart-map b { transform: rotate(180deg); top: auto; left: auto; right: 14%; bottom: 16%; border-color: #e879f9; }
.work-preview-fallout { background-color: #11221955; }
.work-terminal { position: absolute; right: 6%; top: 26%; width: 34%; color: #a3e6a4; font: .65rem/2 monospace; }
.work-terminal span { display: block; }
.work-preview-fallout .work-preview-type span { color: #86b38c; }
.work-preview-lab { background-color: #07202466; }
.work-lab-query { position: absolute; top: 24%; right: 5%; width: 40%; padding: 14px; border: 1px solid #67e8f940; border-radius: 8px; background: #081a20b0; }
.work-lab-query span { display: block; color: #b7e8e2; font: .58rem/1.6 monospace; margin-bottom: 14px; }
.work-lab-query i { display: block; height: 4px; margin-top: 9px; background: #67e8f93a; width: 85%; }
.work-lab-query i:nth-of-type(2) { width: 55%; }
.work-lab-query small { display: block; margin-top: 16px; font: .4rem monospace; color: #94b9b8; }
.work-heading-split { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.work-heading-split h2 { font-size: clamp(3rem, 6.5vw, 5.5rem); margin-bottom: 0; }
.work-heading-split .work-hook { max-width: 370px; padding-bottom: 6px; }
.work-feature { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; border: 1px solid #b8a3e529; border-radius: 14px; background: #ffffff03; overflow: hidden; scroll-margin-top: 90px; }
.work-feature > .work-media { border-bottom: 0; border-right: 1px solid #b8a3e529; }
.work-feature-copy { padding: 32px; min-width: 0; }
.work-feature-list { padding: 0; list-style: none; margin: 21px 0; color: #d6cce5; font-size: .73rem; line-height: 2; }
.work-feature-list li::before { content: '+'; color: var(--work-cyan); margin-right: 10px; }
.work-aside { color: #bca8d4; border-left: 2px solid #a855f76b; padding-left: 13px; margin: 24px 0 0; font-size: .75rem; line-height: 1.8; }
.work-preview-peanut { background-color: #35122755; }
.work-chat-preview { position: absolute; right: 7%; top: 29%; transform: rotate(-5deg); }
.work-chat-preview span { display: block; width: fit-content; border: 1px solid #c084fc44; background: #321c3c; color: #ddc4e8; font: .55rem/1.5 monospace; padding: 12px; border-radius: 9px 9px 2px 9px; margin-bottom: 9px; }
.work-chat-preview span:nth-child(2) { margin-left: 28px; background: #122a32; border-color: #67e8f944; color: #afe1e8; }
.work-chat-preview b { display: block; color: #e9b784; text-align: right; font: .55rem monospace; padding: 6px; }
.work-feature-bridge { grid-template-columns: 1.35fr 1fr; }
.work-preview-bridge { background-color: #271b1055; }
.work-bridge { position: absolute; right: 5%; top: 22%; width: 48%; height: 30%; display: flex; align-items: end; border-bottom: 3px solid #e2af72; }
.work-bridge i { flex: 1; height: 80%; border: 1px solid #e2af7299; transform: skew(-22deg); }
.work-bridge span { position: absolute; left: 0; bottom: -35px; width: 15%; height: 33px; background: #96774f55; box-shadow: 260px 0 #96774f33; }
.work-bridge b { position: absolute; width: 20%; height: 16px; left: 23%; top: -18px; background: #b5b3a5; border-radius: 8px 4px 0 0; box-shadow: 0 6px #5a6670; }
.work-bridge b::after { content: ''; position: absolute; width: 30px; height: 4px; background: #b5b3a5; right: -20px; top: 5px; }
.work-preview-bridge .work-preview-type span { color: #c7a981; }
.work-action { display: inline-flex; align-items: center; gap: 18px; color: #d8faff; text-decoration: none; border: 1px solid #67e8f94a; background: #67e8f908; padding: 13px 17px; border-radius: 6px; margin-top: 25px; font-size: .75rem; transition: background .2s, border-color .2s; }
.work-action:hover { background: #67e8f916; border-color: #67e8f9; }
.work-footer { display: flex; gap: 20px; justify-content: space-between; align-items: center; border-bottom: 1px solid #ffffff18; padding: 46px 0; }
.work-footer a { color: #bcb1cf; font-size: .85rem; text-decoration: none; }
.work-peanut-restore { border: 1px solid #c084fc55; background: #221035; border-radius: 5px; color: #eee1fc; font-size: .75rem; padding: 12px; cursor: pointer; }
.work-hero-link { color: #c4b5fd; font: 500 .78rem 'Space Grotesk', sans-serif; letter-spacing: .04em; padding: 12px 0; text-underline-offset: 6px; }
.work-peanut-slot:empty { display: none; }

/* The co-host is a light CSS character, with no image, canvas or model dependency. */
.peanut-host { position: fixed; right: 18px; bottom: 18px; z-index: 35; width: 255px; padding: 15px; border: 1px solid #c084fc55; border-radius: 15px; background: #130b21f5; color: #eee8f7; box-shadow: 0 10px 40px #0008; font-family: Inter, system-ui, sans-serif; }
.peanut-host header { display: flex; align-items: center; gap: 11px; }
.peanut-host strong { display: block; color: #f3dcad; font: 600 .8rem 'Space Grotesk', sans-serif; }
.peanut-host small { display: block; color: #b2a3c4; font-size: .57rem; margin-top: 3px; }
.peanut-avatar { position: relative; flex: 0 0 29px; height: 42px; border: 2px solid #ebbb7b; border-radius: 48% 48% 45% 45%; background: linear-gradient(90deg, #a37543, #e4af6d 45%, #b77e48); transform: rotate(-9deg); box-shadow: inset 0 -4px #6e492233; }
.peanut-avatar::before { content: ''; position: absolute; width: 4px; height: 5px; left: 6px; top: 12px; background: #241629; box-shadow: 9px 0 #241629; border-radius: 50%; }
.peanut-avatar::after { content: ''; position: absolute; width: 11px; height: 6px; border-bottom: 2px solid #41232c; border-radius: 0 0 50% 50%; left: 7px; top: 23px; }
.peanut-bubble { position: relative; background: #251734; border: 1px solid #c084fc20; border-radius: 3px 10px 10px; padding: 12px; margin: 13px 0 10px; font-size: .77rem; line-height: 1.65; overflow-wrap: anywhere; }
.peanut-context { color: #b9a1d0; font: .57rem/1.5 'Space Grotesk', sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 10px 0 0; }
.peanut-actions { display: flex; gap: 6px; }
.peanut-actions button { min-height: 36px; flex: 1; border: 1px solid #c084fc33; background: transparent; color: #d2bfdc; border-radius: 4px; padding: 5px; font-size: .64rem; cursor: pointer; }
.peanut-actions button:hover { background: #c084fc16; color: #fff; }
.peanut-actions button:disabled { opacity: .45; cursor: default; }
.peanut-host[data-muted="true"] .peanut-bubble { color: #b5a7c0; }
.peanut-host[data-speaking="true"] .peanut-avatar { animation: peanut-nod .48s ease-in-out 2; }
.work-media[data-visible="true"]:not([data-ready="true"]) .work-tetris-board b { animation: work-piece 4s ease-in-out infinite; }
.work-media[data-visible="true"]:not([data-ready="true"]) .work-terminal-cursor { animation: work-blink 1.4s steps(2, start) infinite; }
@keyframes peanut-nod { 50% { transform: translateY(-3px) rotate(7deg); } }
@keyframes work-piece { 0%, 20% { transform: translateY(0); } 65%, 85% { transform: translateY(78%); } }
@keyframes work-blink { 50% { opacity: .2; } }
@media (max-width: 1050px) {
  .work-feature, .work-feature-bridge { grid-template-columns: 1fr; }
  .work-feature > .work-media { border-right: 0; border-bottom: 1px solid #b8a3e529; }
  .work-feature .work-preview-type strong { font-size: clamp(1.5rem, 4vw, 3rem); }
  .work-chat-preview span { font-size: .8rem; }
}
@media (max-width: 900px) {
  /* In normal document flow on phones/tablets: no fixed overlay can cover content. */
  .peanut-host { position: relative; inset: auto; width: 100%; margin: 24px 0 0; box-shadow: none; display: grid; grid-template-columns: 145px 1fr; gap: 0 18px; }
  .peanut-host header { grid-column: 1; grid-row: 1 / 3; }
  .peanut-bubble { grid-column: 2; grid-row: 2; margin-top: 5px; }
  .peanut-context { grid-column: 2; grid-row: 1; margin-top: 0; }
  .peanut-actions { grid-column: 2; }
  .peanut-actions button { min-height: 44px; }
  .work-heading-split { align-items: start; flex-direction: column; gap: 22px; }
}
@media (max-width: 640px) {
  .work-shell { width: calc(100% - 32px); }
  .work-jumps { align-items: start; flex-direction: column; gap: 8px; padding: 24px 0 15px; }
  .work-jumps > div { gap: 22px; }
  .work-jumps a { min-height: 44px; display: inline-flex; align-items: center; }
  .work-section { padding-top: 58px; }
  .work-section + .work-section { padding-top: 76px; }
  .work-grid { grid-template-columns: 1fr; gap: 22px; }
  .work-arc { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .work-card-copy, .work-feature-copy { padding: 23px; }
  .work-preview-type strong { font-size: clamp(1.1rem, 5vw, 1.8rem); }
  .work-preview-type > span { font-size: .47rem; }
  .work-preview-type { bottom: 27%; }
  .work-preview-note { top: 12px; left: 12px; font-size: .5rem; }
  .work-terminal { font-size: .49rem; }
  .work-lab-query { padding: 9px; }
  .work-lab-query span { font-size: .44rem; margin-bottom: 6px; }
  .work-lab-query small { font-size: .33rem; margin-top: 8px; }
  .work-chat-preview { top: 27%; right: 4%; }
  .work-chat-preview span { font-size: .46rem; padding: 8px; }
  .work-chat-preview b { font-size: .48rem; }
  .work-media-bar { padding: 9px; }
  .work-media-status { max-width: 67%; font-size: .54rem; }
  .work-play { min-height: 44px; }
  .work-footer { align-items: start; flex-direction: column; padding: 32px 0; }
  .peanut-host { grid-template-columns: 1fr; padding: 16px; }
  .peanut-host header, .peanut-context, .peanut-bubble, .peanut-actions { grid-column: 1; grid-row: auto; }
  .peanut-context { margin-top: 12px; }
  .peanut-bubble { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work-showcase *, .peanut-host *, .work-hero-link { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .work-card:hover { transform: none; }
}
