/* A bounded catalogue and a single, movable page companion. */
.friend-card,.friend-card:first-child{background:#e5e2d8;overflow:hidden;transition:background .12s}
.friend-card:nth-child(even){background:var(--paper)}
.friend-card[aria-pressed=true]{background:var(--accent)}
.friend-art{display:flex;align-items:center;justify-content:center;height:clamp(205px,17vw,260px);padding:22px 12px;overflow:hidden;min-width:0}
.friend-art>img{display:block;flex:0 1 auto;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.friend-caption{min-height:56px;padding:13px 15px}
.friend-arrow{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0}
.friend-card[aria-pressed=true] .friend-arrow{background:var(--ink);color:var(--accent)}
.friends-bottom{justify-content:space-between;align-items:center;gap:20px}
.friends-bottom>span{font-size:12px;color:var(--muted)}

.screen-companion{position:fixed;left:0;top:0;width:216px;z-index:46;isolation:isolate}
.companion-stage{display:block;width:100%;height:180px;border:0;padding:0;background:none;overflow:hidden;cursor:grab;touch-action:none;user-select:none}
.companion-stage>img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;pointer-events:none}
.companion-bar{display:flex;align-items:stretch;height:42px;border:2px solid var(--ink);background:var(--ink);color:var(--paper)}
.companion-grip{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex:1;min-width:0;height:38px;border:0;padding:0 9px;cursor:grab;touch-action:none}
.companion-grip>strong{font-size:12px;font-weight:800;white-space:nowrap}
#companion-thumb{display:none;width:24px;height:24px;object-fit:contain;flex-shrink:0;pointer-events:none}
.screen-companion[data-collapsed=true] #companion-thumb{display:block}
.companion-tool{display:grid;place-items:center;flex:0 0 36px;height:38px;border:0;border-left:1px solid #eeece547;padding:0}
.companion-tool>svg{width:17px;height:17px;pointer-events:none}
.companion-tool:hover{background:var(--accent);color:var(--ink)}
.companion-actions{display:flex;border:1px solid var(--ink);border-top:0;background:var(--paper)}
.companion-actions>button{flex:1;min-width:0;min-height:36px;border:0;border-right:1px solid var(--ink);padding:7px 5px;font-size:11px;font-weight:700}
.companion-actions>button:last-child{border-right:0}
.companion-actions>button[aria-pressed=true]{background:var(--accent)}
.companion-actions>button:hover{background:var(--ink);color:var(--paper)}
.screen-companion.is-dragging{will-change:transform}
.screen-companion.is-dragging .companion-stage,.screen-companion.is-dragging .companion-grip{cursor:grabbing}
.screen-companion.is-input-focused{visibility:hidden;pointer-events:none}

@media(hover:hover) and (pointer:fine){.friend-card:hover{background:var(--accent)}}
@media(max-width:900px){.friend-art{height:240px;padding:22px 18px}}
@media(max-width:640px){
  html{scroll-padding-top:90px}
  .header-inner{height:70px}.header-actions .button-small{min-height:44px}.menu-toggle{width:44px;height:44px}
  .hero-canvas{height:780px}.hero-canvas:before{top:354px}
  .hero h1{font-size:clamp(48px,10.8vw,64px);letter-spacing:-3px}
  .hero-title-top{top:64px}.hero-title-bottom{top:140px}
  .hero-copy{top:232px}.hero-description{font-size:14px;line-height:1.7;margin-bottom:15px}
  .hero-circle-cta{min-height:48px;padding:11px 17px}
  .hero-pet-container{top:350px;width:min(82%,365px);right:7%}
  .hero-pet{touch-action:pan-y}
  .hero-pickers{left:20px;bottom:18px;gap:6px}.hero-pickers>button{width:44px;height:44px}
  .hero-motion-controls{right:20px;bottom:18px}.hero-motion-controls>button{min-width:44px;min-height:44px;font-size:11px;padding:9px 8px}
  .section-space{padding-block:48px}.section-top{margin-bottom:28px}.section-top h2{font-size:clamp(35px,10.5vw,43px);line-height:1.14;letter-spacing:-2px}
  .sample-tabs button{min-height:44px}.studio-motion-controls>button{min-height:42px;font-size:11px}
  .friend-art{height:clamp(160px,47vw,210px);padding:18px 10px}.friend-caption{min-height:54px;padding:12px}.friend-caption>strong{font-size:17px}
  .friends-bottom{gap:14px;padding-top:20px}.friends-bottom>span{font-size:11px;line-height:1.8}.friends-bottom>a{font-size:11px;white-space:nowrap;gap:10px}
  .beta-section{padding-block:48px}.beta-layout{gap:30px}.beta-copy h2{font-size:64px;line-height:1.1}.application-card{padding:27px 23px}
  #contact{min-height:54px}.form-submit{min-height:55px}.contact-hint{line-height:1.8}
  .faq-list summary{min-height:54px;padding-block:16px}.faq-section{padding-block:44px}
  .dialog-close{width:44px;height:44px}.dialog-motion-controls>button{min-height:44px}
  .screen-companion{width:204px}.companion-stage{height:150px}.companion-bar{height:48px}
  .companion-tool{flex-basis:44px;height:44px}.companion-tool>svg{width:18px;height:18px}
  .companion-grip{height:44px;padding-inline:4px;gap:4px}.companion-grip>strong{font-size:11px}#companion-thumb{width:22px;height:22px}
  .companion-actions>button{min-height:44px;font-size:12px}
}
@media(max-width:480px){
  .hero-canvas{height:700px}.hero-canvas:before{top:324px}
  .hero h1{font-size:clamp(46px,15vw,62px);letter-spacing:-2.5px}
  .announcement{top:18px}.hero-title-top{top:58px}.hero-title-bottom{top:128px}
  .hero-copy{top:213px}.hero-description{font-size:13px;margin-bottom:13px}.hero-circle-cta{width:211px;min-height:46px}
  .hero-pet-container{top:322px;width:min(84%,330px);right:5%}
  .hero-pickers{left:16px}.hero-motion-controls{right:16px}
  .studio-motion-controls{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:9px}.studio-motion-controls>button{min-width:0;min-height:44px;margin-top:-1px;font-size:11px;padding:7px 5px}
  .reference-pane,.result-pane{padding-inline:12px}.reference-frame{height:175px}.result-stage{height:196px}
  .sample-tabs button{min-width:44px;padding-inline:10px;font-size:10px}
  .desktop-pane{padding:18px 15px 20px}.case-desktop{height:211px}
  .friend-art{height:clamp(151px,46vw,187px)}.friend-caption{padding:12px 10px}.friend-caption>strong{font-size:16px}
  .application-card h3{font-size:25px}.intent-options label>span{min-height:44px;font-size:12px}
}
@media(max-width:360px){
  .hero h1{font-size:15vw}.hero-title-top{top:62px}.hero-title-bottom{top:128px}.hero-copy{top:213px}
  .hero-pickers{bottom:66px;left:16px}.hero-pickers>button{width:44px;height:44px}
  .hero-motion-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));left:16px;right:16px;bottom:14px}.hero-motion-controls>button{min-width:0;min-height:44px}
  .reference-pane,.result-pane{padding-inline:10px}.reference-frame{height:154px}.result-stage{height:180px}.result-stage>img{width:151px;height:151px}
  .sample-tabs button{min-width:44px;font-size:9px;padding-inline:8px}.friend-caption>strong{font-size:15px}
  .beta-copy h2{font-size:57px}.application-card{padding:25px 20px}.application-card h3{font-size:23px}
}
