header.cp-header { position: relative; margin-bottom: 0; overflow: visible; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 36px; }
  .cp-back { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: rgb(var(--sds-ink-secondary)); }
  .cp-header-end { display: flex; align-items: center; gap: 30px; }
  .cp-header-end img { width: 128px; height: auto; }
  .cp-header .lang-wrap { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .cp-hero { width: min(1200px,calc(100% - 96px)); margin: auto; min-height: calc(100svh - 78px); display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 64px; align-content: center; align-items: center; padding-block: 32px 24px; }
  .cp-copy { min-width: 0; }
  .cp-eyebrow { display: flex; align-items: center; gap: 10px; font: 10px/1.5 var(--font-mono); color: #47658c; }
  .cp-eyebrow > span:first-child { font-size: 15px; }
  .cp-mascot-stage { width: 100%; height: min(440px,52vh); min-height: 320px; position: relative; }
  .cp-interaction { font: 10px/1.5 var(--font-mono); color: rgb(var(--sds-ink-muted)); margin-top: 12px; margin-bottom: 0; }
  h1 { display: inline-grid; font: 500 clamp(48px,6.5vw,84px)/1.02 var(--font-body); letter-spacing: -.065em; margin-top: 30px; margin-bottom: 22px; }
  .cp-title-sizer, .cp-title-typed { grid-area: 1 / 1; }
  .cp-title-sizer { visibility: hidden; }
  .cp-title-typed { text-align: left; white-space: nowrap; }
  .title-pending #codexpresso-word { visibility: hidden; }
  .cp-cursor { color: #FF00B4; animation: cp-cursor 1s steps(1, end) infinite; }
  .cp-title-typing .cp-cursor { animation: none; }
  @keyframes cp-cursor { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
  h2 { font: 400 clamp(25px,3vw,36px)/1.25 var(--font-body); letter-spacing: -.035em; margin-bottom: 20px; max-width: 17em; text-wrap: balance; }
  .cp-description { max-width: 35em; color: rgb(var(--sds-ink-secondary)); font-size: 14px; line-height: 1.65; margin-bottom: 24px; text-wrap: pretty; }
  .cp-join { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 20px; min-height: 48px; border-radius: 8px; background: rgb(var(--sds-nucleo)); color: rgb(var(--sds-lienzo)); font-size: 14px; font-weight: 500; transition: background .2s var(--ease-smooth); }
  .cp-join:hover { background: #39445a; }
  .cp-soon { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 10px; color: rgb(var(--sds-ink-muted)); }
  .cp-soon > span:first-child { flex: none; width: 5px; height: 5px; background: #6983a6; }
  .cp-soon a { text-decoration: underline; text-underline-offset: 3px; }
  .cp-credits { grid-column: 1 / -1; text-align: left; margin-top: 48px; max-width: 55em; font-size: 10px; line-height: 1.7; color: rgb(var(--sds-ink-muted)); }
  .cp-credits a { text-decoration:underline; text-underline-offset:3px; }
  .cp-credits a:hover { color:#f0ede6; }
  .cp-credits a:focus-visible { outline:2px solid #ff00b4; outline-offset:4px; }
  /* The cup's handle is centered on the original square hand. As a child of
     that hand it shares every translation, lift, and rotation of the grip. */
  @media(prefers-reduced-motion: reduce) { .cp-cursor { animation: none; } }
  @media(max-width:1000px) { .cp-hero { column-gap: 24px; width: calc(100% - 64px); } h1 { font-size: 58px; } }
  @media(max-width:760px) {
    header.cp-header { padding: 16px 20px; } .cp-back { font-size: 11px; gap: 6px; } .cp-header-end { gap: 12px; } .cp-header-end img { width: 100px; }
    .cp-hero { width: calc(100% - 40px); grid-template-columns: 1fr; padding-block: 32px 24px; min-height: calc(100svh - 66px); }
    .cp-copy { text-align: left; }
    .cp-eyebrow { font-size: 9px; } .cp-mascot-stage { min-height: 200px; height: 240px; }
    h1 { font-size: clamp(42px,11.7vw,76px); } h2 { font-size: 29px; }
    .cp-description { max-width: 30em; font-size: 13px; } .cp-soon { font-size: 9px; flex-wrap: wrap; }
    .cp-interaction { font-size: 8px; } .cp-credits { margin-top: 4px; font-size: 9px; }
  }
  @media(max-width:380px) { .cp-header-end img { width: 80px; } .cp-header-end { gap: 6px; } .cp-back { font-size: 10px; } }

/* A quiet midnight café, with the original Bugambilia character in focus. */
html, body { background: #191b21; color: #f0ede6; }
body { --sds-ink-secondary: 192 192 195; --sds-ink-muted: 151 153 163; --sds-bg-subtle: 44 47 56; }
.cp-hero { position: relative; }
.cp-back { color: #c2c2c8; }
.cp-eyebrow { color: #c3b8d6; }
.cp-join { background: #f0ede6; color: #191b21; }
.cp-join:hover { background: #ff00b4; color: #191b21; }
.cp-soon > span:first-child { background: #ff00b4; }

body { background: #191b21; }
header.cp-header::after { content: ''; position: absolute; bottom: 0; left: 36px; right: 36px; height: 1px; background: #f0ede60c; }

.cp-cursor { display: inline-block; width: .55em; text-align: left; }
.cp-token-arrived { animation: cp-token-arrive 180ms ease-out; }
@keyframes cp-token-arrive { from { opacity: .68; filter: blur(.4px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .cp-token-arrived { animation: none; } }

/* A continuous viewport-aligned beam lights the actual clipped glyphs. */

@keyframes cp-word-beam { 0%,55% { background-position: 150% 0; } 82%,100% { background-position: -50% 0; } }

.cp-join { max-width:100%; gap:20px; text-align:left; font-size:13px; line-height:1.4; }

@supports (background-clip:text) { .cp-word-run { background:linear-gradient(105deg,#f0ede6 40%,#fff 47%,#ffd0ef 50%,#fff 53%,#f0ede6 60%); background-size:300vw 100%; background-attachment:fixed; background-clip:text; -webkit-background-clip:text; color:transparent; animation:cp-word-beam 7s linear infinite; } }
@media(prefers-reduced-motion:reduce) { .cp-word-run { animation:none; background:none; color:#f0ede6; } }

/* The laptop uses the mascot's flat graphic language. */
/* Negative tracking needs paint space after the final round glyph. */
.cp-word-run { display:inline-block; padding-right:.1em; margin-right:-.1em; }
/* Straight-on laptop: hands behind the screen, eyes above its top edge. */

/* A compact invitation, with the accent reserved for its directional cue. */
.cp-join { background:transparent; color:#f0ede6; border:1px solid #f0ede63b; border-radius:4px; padding:8px 8px 8px 18px; gap:28px; font-size:14px; transition:border-color .2s,background .2s; }
.cp-join > .cp-invite-mascot { display:block; width:32px; height:32px; flex:none; background:none; }
.cp-join:hover { background:#f0ede608; border-color:#ff00b4; color:#fff; }

.cp-join:focus-visible { outline:2px solid #ff00b4; outline-offset:5px; }
@media(prefers-reduced-motion:reduce) { .cp-join, .cp-join > span:last-child {transition:none;} }

.cp-invite-mascot svg { width:100%; height:100%; overflow:visible; transform-origin:50% 90%; }
.cp-invite-hand { transform-origin:81px 19px; }
.cp-invite-eyes { opacity:0; transition:opacity .18s; }
.cp-join:is(:hover,:focus-visible,.is-celebrating,.is-peeking) .cp-invite-eyes { opacity:1; }
.cp-join:is(:hover,:focus-visible) .cp-invite-mascot svg { animation:cp-invite-hop 700ms cubic-bezier(.2,.8,.3,1); }
.cp-join.is-celebrating .cp-invite-mascot svg { animation:cp-invite-party 850ms ease-out; }
.cp-join.is-celebrating .cp-invite-hand { animation:cp-invite-wave 850ms ease-in-out; }
@keyframes cp-invite-hop { 0%,100% {transform:none;} 20% {transform:scale(1.12,.86);} 50% {transform:translateY(-8px) rotate(-9deg) scale(.94,1.07);} 80% {transform:scale(1.08,.92);} }
@keyframes cp-invite-party { 0%,100% {transform:none;} 18% {transform:scale(1.15,.8);} 43% {transform:translateY(-16px) rotate(-14deg);} 65% {transform:translateY(-6px) rotate(8deg);} 84% {transform:scale(1.12,.88);} }
@keyframes cp-invite-wave { 0%,100% {transform:none;} 35%,65% {transform:translate(4px,-7px) rotate(18deg);} 50%,80% {transform:translate(0,-3px) rotate(-12deg);} }
@media(prefers-reduced-motion:reduce) { .cp-join .cp-invite-mascot svg, .cp-join .cp-invite-hand {animation:none!important;} }

.cp-join.is-peeking .cp-invite-eyes { transform-box:fill-box; transform-origin:center; animation:cp-invite-peek 1.6s ease-in-out; }
@keyframes cp-invite-peek { 0% {transform:translateX(-2px) scaleY(.2);} 20%,45% {transform:translateX(0) scaleY(1);} 52% {transform:translateX(1px) scaleY(.1);} 60%,85% {transform:translateX(1px) scaleY(1);} 100% {transform:translateX(0) scaleY(1);} }
@media(prefers-reduced-motion:reduce) { .cp-join .cp-invite-eyes {animation:none!important;transition:none;} }

.cp-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.cp-codex { display:inline-flex; align-items:center; justify-content:center; gap:22px; min-height:50px; padding:12px 20px; border:1px solid #f0ede636; border-radius:4px; font-size:14px; line-height:1.4; color:#f0ede6; transition:border-color .2s,background .2s; }
.cp-codex:hover { border-color:#f0ede6; background:#ffffff08; }
.cp-codex:focus-visible { outline:2px solid #ff00b4; outline-offset:5px; }
@media(prefers-reduced-motion:reduce) { .cp-codex {transition:none;} }

/* Use the shared homepage language pill without local visual overrides. */
.cp-community { display:inline-flex; align-items:center; gap:9px; min-height:36px; padding:8px 12px; border:1px solid #f0ede630; border-radius:8px; color:#f0ede6; font-size:12px; line-height:1.4; white-space:nowrap; transition:background 180ms ease,border-color 180ms ease; }
.cp-community:hover { background:#ffffff0d; border-color:#f0ede670; }
.cp-community svg { width:20px; height:20px; flex:none; }
.cp-header-end { gap:20px; }
@media(max-width:680px) {
  header.cp-header { display:grid; grid-template-columns:1fr auto; gap:18px 12px; }
  .cp-header-end { display:contents; }
  .cp-header-brand { grid-column:2; grid-row:1; justify-self:end; }
  .cp-community { grid-column:1; grid-row:2; justify-self:start; font-size:11px; padding:8px 10px; }
  .cp-header .lang-wrap { grid-column:2; grid-row:2; justify-self:end; align-self:center; }
}

/* Paired actions: shared shape, a clear primary and secondary hierarchy. */
.cp-join { min-height:48px; border:0; border-radius:8px; background:#ff00b4; color:#fff; padding:8px 12px 8px 20px; }
.cp-join:hover { background:#d900a0; color:#fff; }
.cp-join:active { background:#b50086; }
.cp-join .cp-invite-mascot svg > g:first-child { fill:#fff; }
.cp-join .cp-invite-eyes { fill:#ff00b4; }
.cp-codex { min-height:48px; border-radius:8px; padding:12px 20px; font-weight:500; }
.cp-codex:hover { background:#ffffff12; border-color:#f0ede6; }
.cp-codex:active { background:#ffffff20; }

/* Native disclosures keep the café guide usable without extra JavaScript. */
.cp-faq-jump { display:inline-flex; align-items:center; gap:12px; margin-top:24px; color:#c2c2c8; font:11px/1.5 var(--font-mono); }
.cp-faq-jump:hover { color:#f0ede6; }
.cp-faq { position:relative; padding:96px 24px 120px; background:linear-gradient(180deg,#11111100,#111111e8 110px,#111111 100%); scroll-margin-top:24px; }
.cp-faq-inner { width:min(100%,760px); margin-inline:auto; }
.cp-faq-label { display:flex; align-items:center; gap:10px; margin:0 0 20px; color:#c3b8d6; font:11px/1.5 var(--font-mono); }
.cp-faq-label > span { color:#ff00b4; }
html body .cp-faq #cp-faq-title { max-width:none; margin:0 0 40px; font:400 clamp(28px,4vw,42px)/1.15 var(--font-body); letter-spacing:-.035em; text-align:left; }
.cp-faq-list { border-top:1px solid #f0ede629; }
.cp-faq-item { border-bottom:1px solid #f0ede629; }
.cp-faq-item summary { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:76px; padding:22px 0; cursor:pointer; list-style:none; font:500 17px/1.5 var(--font-body); color:#f0ede6; }
.cp-faq-item summary::-webkit-details-marker { display:none; }
.cp-faq-item summary:hover { color:#fff; }
.cp-faq-plus { flex:none; color:#ff00b4; font:400 24px/1 var(--font-mono); transition:transform 180ms ease; }
.cp-faq-item[open] .cp-faq-plus { transform:rotate(45deg); }
.cp-faq-item p { max-width:62ch; margin:0; padding:0 40px 26px 0; color:#c2c2c8; font-size:15px; line-height:1.8; text-wrap:pretty; }
.cp-faq-item a { color:#f0ede6; text-decoration:underline; text-underline-offset:4px; }
.cp-faq-item a:hover { color:#ff00b4; }
.cp-faq-jump:focus-visible,.cp-faq-item summary:focus-visible,.cp-faq-item a:focus-visible { outline:2px solid #ff00b4; outline-offset:5px; border-radius:2px; }
@media(max-width:760px) {
  .cp-faq { padding:64px 24px 112px; }
  .cp-faq-item summary { font-size:16px; gap:16px; }
  .cp-faq-item p { padding-right:24px; font-size:14px; }
}
@media(prefers-reduced-motion:reduce) { .cp-faq-plus { transition:none; } }
