:root {
  color-scheme: dark;
  font: 15px/1.45 system-ui, sans-serif;
  color: #f4efe5;
  background: #101e28;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 1490px; margin: auto; padding: 24px 28px; }
header { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
header p { margin: 6px 0 0; color: #b7c9d1; }
header .eyebrow { color: #edc17c; font-size: 11px; letter-spacing: .16em; font-weight: 680; }
header a { color: #edc17c; }
h1 { font: 40px/1.1 Georgia, serif; margin: 4px 0; }
h2 { margin: 0; font-size: 16px; font-weight: 650; padding: 12px 15px; }
h2 small { font-size: 12px; color: #afc5cf; margin-left: 7px; font-weight: 400; }
main { padding-top: 0; }
.toolbar, .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar { gap: 12px 18px; }
button {
  border: 1px solid #406071;
  border-radius: 7px;
  padding: 8px 13px;
  min-height: 39px;
  color: #eaf0ee;
  background: #1c3441;
  font: inherit;
  cursor: pointer;
}
button:hover { border-color: #efca90; }
button[aria-pressed="true"] { background: #e9bd7a; color: #14242b; border-color: #e9bd7a; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #f4ce89; outline-offset: 2px; }
button:disabled { opacity: .45; }
label { display: flex; align-items: center; gap: 9px; color: #bdcdd4; }
input { accent-color: #e9bd7a; width: clamp(94px, 16vw, 230px); }
#status { min-height: 22px; margin: 12px 0; color: #b7c9d1; font-size: 13px; }
#status.error { color: #ffc1a8; }
#comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
article { overflow: hidden; border: 1px solid #324e5e; border-radius: 10px; background: #172d3a; }
.viewport { height: clamp(370px, 66vh, 700px); background: linear-gradient(#829bb0,#c1c7c5 52%,#367685 53%,#234c62); }
canvas { display: block; width: 100%; height: 100%; }
.capture #comparison[data-clip="walk"] h2::after { content: "CAMINATA"; }
.capture #comparison[data-clip="groove"] h2::after { content: "BAILE · GROOVE"; }
.capture #comparison[data-clip="greet"] h2::after { content: "SALUDO"; }
.capture #comparison[data-clip="greet"][data-view="hand"] h2::after { content: "SALUDO · MANO DERECHA"; }
.capture #comparison h2::after { float: right; color: #edc17c; font-size: 12px; letter-spacing: .07em; }
@media (max-width: 640px) {
  header, main { padding-left: 12px; padding-right: 12px; }
  header { align-items: start; }
  header a { font-size: 12px; }
  h1 { font-size: 32px; }
  #comparison { grid-template-columns: 1fr; gap: 10px; }
  .viewport { height: min(59vh, 420px); min-height: 300px; }
  h2 { font-size: 14px; padding: 8px; }
  .toolbar { gap: 7px; }
  button { padding: 6px 8px; font-size: 13px; }
}
