/* ===================================================================
   studio.css — Studio headline feature (shared component)
   Linked by any page that shows the "Welcome to your Studio" section:
   index.html (homepage) + features.html. Single source of truth so a
   tweak flips on every page. Relies on page tokens: --font-head,
   --text, --muted, --accent, --blue.
   Recreation of the real Studio room (mock May-4th DEMO data, no PII,
   gridless canvas). 9s loop: reaction picker reveals inline → reaction
   lands → "Maya is typing…" inside the composer → right-aligned reply.
   =================================================================== */

/* ── Welcome → animated room → blurb ─────────────────────────────── */
.studio-feature { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 52px 48px 12px; text-align: center; }
/* Clean, grid-free backdrop — Studio's canvas has no grid, so hide the page grid behind the shot (soft spotlight instead). */
.studio-feature::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: radial-gradient(ellipse 62% 74% at 50% 52%, #e7edf9 0%, #d8e0f2 72%); z-index: -1; }
.studio-feature-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.studio-feature-h { font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); }
.studio-feature-h em { font-style: italic; color: var(--accent); }
.studio-feature-blurb { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 600px; margin: 26px auto 0; }
.studio-feature-blurb b { color: var(--text); font-weight: 600; }

/* Animated Studio room — recreation of the real UI (mock May-4th data, no PII, gridless canvas). */
.sv { margin: 30px auto 0; max-width: 920px; text-align: left; background: #0b0a17; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; box-shadow: 0 34px 80px rgba(20,33,61,0.22); overflow: hidden; }
.sv-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px 0; }
.sv-proj { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #f4f3fb; }
.sv-proj span { color: rgba(244,243,251,0.45); }
.sv-proj-sub { font-size: 11px; color: rgba(240,238,248,0.4); margin-top: 3px; }
.sv-squad { display: flex; align-items: center; gap: 10px; font-size: 11px; color: rgba(240,238,248,0.45); flex-shrink: 0; }
.sv-squad-pill { display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; }
.sv-squad-av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#4f7cf0,#1a4fd6); flex-shrink: 0; }
.sv-squad-you { font-size: 11px; color: #f4f3fb; font-weight: 600; line-height: 1.15; }
.sv-squad-you span { display: block; font-weight: 400; color: rgba(240,238,248,0.4); font-size: 9.5px; }
.sv-invite { border: 1px solid rgba(255,255,255,0.15); border-radius: 7px; padding: 4px 11px; font-size: 11px; color: rgba(240,238,248,0.65); }
.sv-tabs { display: flex; gap: 18px; padding: 13px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: rgba(240,238,248,0.4); }
.sv-tabs span:first-child { color: #f4f3fb; }
.sv-room { padding: 16px 22px 0; }
.sv-head { display: flex; align-items: flex-start; gap: 11px; position: relative; }
.sv-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg,#4f7cf0,#1a4fd6); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 15px; flex-shrink: 0; }
.sv-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #f4f3fb; }
.sv-title span { color: rgba(244,243,251,0.5); }
.sv-sub { font-size: 12px; color: rgba(240,238,248,0.5); margin-top: 3px; }
.sv-sub b { color: rgba(240,238,248,0.82); font-weight: 600; }
.sv-rbtns { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.sv-rbtn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.sv-rbtn svg { width: 14px; height: 14px; stroke: rgba(240,238,248,0.5); fill: none; }
.sv-blabel, .sv-tlabel { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: #f4f3fb; display: flex; align-items: center; gap: 8px; }
.sv-blabel { padding: 16px 0 2px; } .sv-tlabel { padding: 14px 0 6px; }
.sv-blabel svg, .sv-tlabel svg { width: 15px; height: 15px; stroke: rgba(240,238,248,0.75); fill: none; }
.sv-brow { display: flex; align-items: center; gap: 9px; padding: 8px 0 8px 24px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: rgba(240,238,248,0.55); }
.sv-brow svg.ic { width: 14px; height: 14px; fill: none; }
.sv-brow .chev { margin-left: auto; width: 12px; height: 12px; stroke: rgba(240,238,248,0.3); fill: none; }
.sv-brow .caught { margin-left: auto; font-size: 10px; letter-spacing: 0; color: rgba(240,238,248,0.32); font-weight: 400; }
.sv-brow .caught + .chev { margin-left: 12px; }
.sv-hr { height: 1px; background: rgba(255,255,255,0.06); margin-top: 10px; }
.sv-talk { min-height: 156px; }
.sv-msgrow { position: relative; display: flex; gap: 10px; padding: 8px 0; }
.sv-msgrow.you { flex-direction: row-reverse; }
.sv-msgrow.you .sv-msg-n { flex-direction: row-reverse; }
.sv-msgrow.you .sv-msg-c { text-align: right; }
.sv-msg-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,#8a6df0,#6e8fec); }
.sv-msg-av.you { background: linear-gradient(135deg,#4f7cf0,#1a4fd6); }
.sv-msg-n { font-size: 13px; font-weight: 600; color: #f4f3fb; display: flex; align-items: baseline; gap: 8px; }
.sv-msg-n span { font-family: var(--font-head); font-size: 9.5px; color: rgba(240,238,248,0.32); font-weight: 400; }
.sv-msg-b { font-size: 14px; color: #eceaf6; margin-top: 2px; line-height: 1.4; }
.sv-react-slot { position: relative; margin-top: 8px; min-height: 28px; }
.sv-react { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(110,143,236,0.16); border: 1px solid rgba(110,143,236,0.32); font-size: 11px; color: rgba(240,238,248,0.7); transform-origin: left center; animation: sv-react 9s ease-in-out infinite; }
.sv-react img { width: 13px; height: 13px; }
.sv-picker { position: absolute; left: 0; top: 0; display: inline-flex; gap: 4px; transform-origin: left center; animation: sv-picker 9s ease-in-out infinite; }
.sv-picker span { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); }
.sv-picker .dpm img { width: 15px; height: 15px; }
.sv-typing { position: absolute; left: 46px; top: 0; bottom: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(240,238,248,0.5); animation: sv-typing 9s ease-in-out infinite; }
.sv-typing img { width: 17px; height: 17px; animation: sv-mark 1.15s ease-in-out infinite; }
.sv-reply { animation: sv-replyin 9s ease-in-out infinite; }
.sv-compose { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px; border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.sv-compose .plus { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(240,238,248,0.5); font-size: 15px; }
.sv-compose .ph { flex: 1; font-size: 13px; color: rgba(240,238,248,0.35); animation: sv-ph 9s ease-in-out infinite; }
.sv-compose .send { font-size: 12px; font-weight: 600; color: #fff; background: var(--blue); padding: 7px 16px; border-radius: 8px; }
.sv-foot { font-size: 11px; color: rgba(240,238,248,0.3); padding: 10px 0 16px; }
@keyframes sv-mark { 0%,100% { transform: scale(1); opacity: .6 } 50% { transform: scale(1.2); opacity: 1 } }
@keyframes sv-picker { 0%,6% { opacity:0; transform: translateY(6px) scale(.92) } 12%,26% { opacity:1; transform:none } 32%,100% { opacity:0; transform: translateY(6px) scale(.92) } }
@keyframes sv-react { 0%,30% { opacity:0; transform: scale(.6) } 38%,100% { opacity:1; transform: scale(1) } }
@keyframes sv-typing { 0%,40% { opacity:0; transform: translateX(4px) } 46%,62% { opacity:1; transform:none } 68%,100% { opacity:0 } }
@keyframes sv-ph { 0%,42% { opacity:1 } 46%,62% { opacity:0 } 66%,100% { opacity:1 } }
@keyframes sv-replyin { 0%,66% { opacity:0; transform: translateY(8px) } 74%,100% { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) { .sv-typing,.sv-picker { display:none } .sv-reply,.sv-react,.sv-typing img,.sv-compose .ph { animation: none } .sv-reply,.sv-react,.sv-compose .ph { opacity:1; transform:none } }

@media (max-width: 860px) {
  .studio-feature { padding: 40px 24px 8px; }
}

/* Narrow screens — keep the room's chrome from clipping mid-word:
   squad info stacks below the project title; the tab bar tightens and
   fades at the right edge so the overflow reads as a scrollable bar. */
@media (max-width: 640px) {
  .sv-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px 0; }
  .sv-squad { width: 100%; justify-content: flex-start; gap: 8px; }
  .sv-tabs {
    gap: 13px; font-size: 10.5px; padding: 12px 18px;
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent);
    mask-image: linear-gradient(90deg, #000 84%, transparent);
  }
  .sv-room { padding: 14px 18px 0; }
  .sv-rbtns { display: none; }   /* decorative aperture/gear — drop so the title has room */
}

