/* Cinema UI candidate: presentation only; navigation stays in its own module. */
:root {
  color-scheme: dark;
  --ink: #f5f5f5; --muted: #a9a9a9; --hairline: #333333;
  --gold: #e5e5e5; --gold-light: #e5e5e5;
  background: #111111; color: #e5e5e5;
}
body { background: #111111; }
.site-shell { width: min(1160px, calc(100% - 32px)); }
.site-header { min-height: 82px; padding-block: 16px; }
.brand-mark { width: 44px; height: 44px; flex-basis: 44px; border: 0; background: none; box-shadow: none; }
.brand-type strong { color: #f5f5f5; font-size: 21px; }
.brand-type span { color: #a9a9a9; letter-spacing: .16em; }
.hero { padding: 8px 0 22px; }
.hero h1 { color: #f5f5f5; font-size: clamp(28px, 7.4vw, 34px); font-weight: 650; letter-spacing: -.035em; }
.agents-grid { gap: 12px; }
.agent-card,
.agent-remake,
.agent-super,
.agent-free {
  display: grid; grid-template-columns: minmax(0, 1fr) 114px;
  grid-template-rows: auto auto; gap: 14px 10px;
  min-height: 174px; padding: 18px 16px; border: 1px solid #ffffff12;
  border-radius: 16px; background: #202020; color: #e5e5e5;
  box-shadow: inset 0 1px 0 #ffffff03, 0 5px 18px #00000012;
  --rim-line: #d1c7b957; --rim-glow: #c0b19b14;
  transition: border-color 160ms ease, transform 120ms ease;
}
.agent-remake { --rim-line: #d9af8f66; --rim-glow: #c48a5c1c; }
.agent-super { --rim-line: #a6c2d763; --rim-glow: #83a9c51c; }
.agent-free { --rim-line: #c2c9bd5c; --rim-glow: #b4bf9d17; }
.agent-card::before { content: none; }
.card-top { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 0; justify-content: center; }
.card-body { grid-column: 1; grid-row: 1; align-self: end; margin: 0; padding: 0; }
.card-body h2 { color: #f5f5f5; font-size: 21px; font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
.agent-card .agent-keywords { margin-top: 8px; color: #b1b1b1; font-size: 11px; font-weight: 400; line-height: 1.8; letter-spacing: 0; }
.agent-card .card-action {
  grid-column: 1; grid-row: 2; align-self: start; justify-self: start;
  width: fit-content; max-width: 100%; margin: 0; gap: 8px;
  min-height: 48px; padding: 12px 14px; border: 1px solid #ffffff1f;
  border-radius: 999px; background: linear-gradient(135deg, #4d4d4dcc, #343434de); color: #efefef;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  box-shadow: inset 0 1px 0 #ffffff08, 0 2px 5px #00000014;
  transition: background 160ms ease, border-color 160ms ease;
}
.card-action span { min-width: 0; }
.card-action svg { width: 15px; height: 15px; }
.agent-card:active .card-action { background: #515151; border-color: #ffffff38; }
.agent-card:active { transform: scale(.992); }
.agent-card:focus-visible, a:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 4px; }
.poster-pair { position: relative; width: 114px; height: 110px; isolation: isolate; pointer-events: none; }
.poster {
  position: absolute; top: 10px; left: 50%; width: 60px; height: 86px;
  border: 1px solid var(--rim-line); border-radius: 7px; object-fit: cover;
  box-shadow: 0 6px 13px #0006, 0 0 12px var(--rim-glow); transform-origin: 50% 90%;
  animation: cinema-poster 11.2s cubic-bezier(.4,0,.2,1) infinite both;
  animation-play-state: paused;
}
.poster-1 { --from-x: -83%; --to-x: -17%; --from-angle: -8deg; --to-angle: 8deg; --front: 1; --back: 2; }
.poster-2 { --from-x: -17%; --to-x: -83%; --from-angle: 8deg; --to-angle: -8deg; --front: 2; --back: 1; }
.poster-pair[data-motion="on"] .poster { animation-play-state: running; }
@keyframes cinema-poster {
  0%,44.64%,100% { transform: translateX(var(--from-x)) rotate(var(--from-angle)); z-index: var(--front); }
  50%,94.64% { transform: translateX(var(--to-x)) rotate(var(--to-angle)); z-index: var(--back); }
}
/* Existing platform adapter is additive and retains all route handlers. */
html.pnav-enabled .pnav-root-header, .pnav-bar { background: #111111; color: #e5e5e5; border-color: #333333; }
.pnav-menu, .pnav-home, .pnav-close { color: #e5e5e5; border-color: #444444; background: #202020; }
.pnav-menu:hover, .pnav-home:hover { background: #2a2a2a; color: #f5f5f5; }
.pnav-drawer { background: #202020; color: #e5e5e5; box-shadow: 16px 0 56px #0008; }
.pnav-drawer .pnav-title, .pnav-drawer .pnav-close, .pnav-link { color: #e5e5e5; }
.pnav-link[aria-current="page"], .pnav-link:hover { color: #f5f5f5; background: #2a2a2a; border-color: #444444; }
.pnav-caption, .pnav-footnote { color: #a9a9a9; }
@media (max-width: 359px) {
  .site-shell { width: calc(100% - 24px); }
  .agent-card { grid-template-columns: minmax(0,1fr) 96px; min-height: 164px; padding: 16px 14px; column-gap: 8px; }
  .poster-pair { width: 96px; height: 100px; }
  .poster { width: 52px; height: 79px; }
  .card-body h2 { font-size: 19px; }
  .agent-card .agent-keywords { font-size: 10px; }
}
@media (min-width: 600px) and (max-width: 1099px) {
  .site-shell { width: min(760px, calc(100% - 48px)); }
}
@media (min-width: 800px) {
  .site-shell { width: min(1160px,calc(100% - 64px)); }
  .site-header { min-height: 92px; }
  .hero { padding: 32px 0 36px; }
  .hero h1 { font-size: 44px; }
  .agents-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .agent-card { min-height: 180px; padding: 20px; }
  .card-body h2 { font-size: 21px; }
  .poster-pair { height: 120px; }
  .poster { height: 96px; }
}
@media (min-width: 800px) and (max-width: 1099px) {
  .site-shell { width: min(760px, calc(100% - 64px)); }
}
@media (min-width: 1100px) {
  .agents-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .agent-card { min-height: 190px; }
  .card-body h2 { font-size: 20px; }
}
@media (hover:hover) and (pointer:fine) {
  .agent-card:hover { border-color: #ffffff26; transform: translateY(-2px); }
  .agent-card:hover .card-action { background: #4a4a4a; border-color: #ffffff38; }
}
@media (prefers-reduced-motion:reduce) {
  .poster { animation: none; transform: translateX(var(--from-x)) rotate(var(--from-angle)); z-index: var(--front); }
  .agent-card, .agent-card:hover, .agent-card:active { transition: none; transform: none; }
}
